Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177628221
D10376.1794883142.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
625 B
Referenced Files
None
Subscribers
None
D10376.1794883142.diff
View Options
Index: lib/libutil/humanize_number.c
===================================================================
--- lib/libutil/humanize_number.c
+++ 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
Tue, Nov 17, 2:39 AM (17 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41791662
Default Alt Text
D10376.1794883142.diff (625 B)
Attached To
Mode
D10376: The maximum scale is 6 (K, M, G, T, P, E) (B is 0).
Attached
Detach File
Event Timeline