summaryrefslogtreecommitdiffstats
path: root/Row.h
diff options
context:
space:
mode:
authorExplorer09 <explorer09@gmail.com>2023-12-25 19:17:29 +0800
committerBenBE <BenBE@geshi.org>2023-12-29 16:50:03 +0100
commite9cf230aa04689047ac95d1fe0613800d71934d9 (patch)
tree12de5374b5c144e1405460d498e241ae4d00bb15 /Row.h
parentc845b79ea7e9f384ca77064ea0bee16661b135f2 (diff)
Row_printKBytes() improvements
* Allow the maximum value of "15.9Z" ((2^64 - 2) KiB) to be printed. (The previous version supports the maximum of "99.9P" (99.9 PiB) before the printing format goes weird.) * Print up to 2 fraction digits for values between "9.76G" (10000 MiB) and "9.99G" (< 10 GiB), "9.76T" and "9.99T", and so on. Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
Diffstat (limited to 'Row.h')
-rw-r--r--Row.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Row.h b/Row.h
index 951f998c..f67c6103 100644
--- a/Row.h
+++ b/Row.h
@@ -142,12 +142,12 @@ void Row_setPidColumnWidth(pid_t maxPid);
/* Sets the size of the UID column based on the passed UID */
void Row_setUidColumnWidth(uid_t maxUid);
+/* Takes number in kibibytes (base 1024). Prints 6 columns. */
+void Row_printKBytes(RichString* str, unsigned long long number, bool coloring);
+
/* Takes number in bytes (base 1024). Prints 6 columns. */
void Row_printBytes(RichString* str, unsigned long long number, bool coloring);
-/* Takes number in kilo bytes (base 1024). Prints 6 columns. */
-void Row_printKBytes(RichString* str, unsigned long long number, bool coloring);
-
/* Takes number as count (base 1000). Prints 12 columns. */
void Row_printCount(RichString* str, unsigned long long number, bool coloring);

© 2014-2024 Faster IT GmbH | imprint | privacy policy