summaryrefslogtreecommitdiffstats
path: root/linux/LinuxProcess.h
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2021-04-14 20:16:16 +0200
committercgzones <cgzones@googlemail.com>2021-04-26 18:02:58 +0200
commitb41e4d9c546e95fb308db3308848d7dddb4d98cf (patch)
tree77ba38e2fdd1750ff3653d469015448c74515ab3 /linux/LinuxProcess.h
parent6bbb454881986a1a4d2e639b5fb6b7ac47374fe2 (diff)
Rework process field print functions
Make functions formatting data for a process field column less error prone, unify interfaces and improve some internals. * Process_printBytes - rename from Process_humanNumber - take number in bytes, not kilobytes - handle petabytes - increase buffer to avoid crashes when the passed value is ~ ULLONG_MAX * Process_printKBytes - add wrapper for Process_printBytes taking kilobytes keeping -1 as special value * Process_printCount - rename from Process_colorNumber * Process_printTime - add coloring parameter as other print functions - improve coloring and formatting for larger times * Process_printRate - rename from Process_outputRate - use local buffer instead of passed one; this function prints to the RichString after all
Diffstat (limited to 'linux/LinuxProcess.h')
0 files changed, 0 insertions, 0 deletions

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