Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 590932
Collapse All | Expand All

(-)a/libq/human_readable.c (-3 / +3 lines)
Lines 38-45 const char *make_human_readable_str(unsigned long long size, Link Here
38
{
38
{
39
	/* The code will adjust for additional (appended) units. */
39
	/* The code will adjust for additional (appended) units. */
40
	static const char zero_and_units[] = { '0', 0, 'k', 'M', 'G', 'T' };
40
	static const char zero_and_units[] = { '0', 0, 'k', 'M', 'G', 'T' };
41
	static const char fmt[] = "%'Lu";
41
	static const char fmt[] = "%'llu";
42
	static const char fmt_tenths[] = "%'Lu%s%d%c";
42
	static const char fmt_tenths[] = "%'llu%s%d%c";
43
43
44
	static char str[21];		/* Sufficient for 64 bit unsigned integers. */
44
	static char str[21];		/* Sufficient for 64 bit unsigned integers. */
45
45
Lines 78-84 const char *make_human_readable_str(unsigned long long size, Link Here
78
		if (1) { /* no_tenths */
78
		if (1) { /* no_tenths */
79
			if (frac >= 5)
79
			if (frac >= 5)
80
				++val;
80
				++val;
81
			f = "%Lu%*c"; /* fmt_no_tenths */
81
			f = "%llu%*c"; /* fmt_no_tenths */
82
			frac = 1;
82
			frac = 1;
83
		}
83
		}
84
#endif
84
#endif

Return to bug 590932