slstatus

commitceb13206a4d9f410ab49c3824c487658c341d8c8parent10dbc9543edd5b5a7929dd8fa87ed33dd545375cAuthor: Laslo Hunhold <dev@frign.de>
Date: Mon, 21 May 2018 20:08:56 +0200
Refactor fmt_human() and fix a bug
It is not necessary to copy memory or anything. Just keep a pointer to
the active prefix-array and assign the length of the arrays to a
variable.
Make the code more readable by using a switch, be more strict when an
invalid base is passed to it and fix a small oversight in the bottom of
the code where the base 1024 was forgotten to generalized.
Diffstat: