Page MenuHomeFreeBSD

D10376.diff
No OneTemporary

D10376.diff

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

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)

Event Timeline