Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109244985
D10376.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
640 B
Referenced Files
None
Subscribers
None
D10376.diff
View Options
Index: head/lib/libutil/humanize_number.c
===================================================================
--- head/lib/libutil/humanize_number.c
+++ head/lib/libutil/humanize_number.c
@@ -43,7 +43,7 @@
#include <locale.h>
#include <libutil.h>
-static const int maxscale = 7;
+static const int maxscale = 6;
int
humanize_number(char *buf, size_t len, int64_t quotient,
@@ -64,7 +64,7 @@
return (-1);
if (scale < 0)
return (-1);
- else if (scale >= maxscale &&
+ else if (scale > maxscale &&
((scale & ~(HN_AUTOSCALE|HN_GETSCALE)) != 0))
return (-1);
if ((flags & HN_DIVISOR_1000) && (flags & HN_IEC_PREFIXES))
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 3, 1:26 PM (21 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16434831
Default Alt Text
D10376.diff (640 B)
Attached To
Mode
D10376: The maximum scale is 6 (K, M, G, T, P, E) (B is 0).
Attached
Detach File
Event Timeline
Log In to Comment