]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commit
general-functions.pl: Add formatBytes() function.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sun, 29 Mar 2020 16:30:54 +0000 (18:30 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sun, 29 Mar 2020 16:30:54 +0000 (18:30 +0200)
commitf6f372a61788dac0e5258daa712e0bf799d7f007
tree09ef73ba519859ababdb833d41e54c5c09bde410
parenteab96d8a735d2cc75a8c7b283cd7dc6503164367
general-functions.pl: Add formatBytes() function.

This function can be used to convert an amount of bytes to a
humand-readable format.

For example "3221225472" will become "3MB".

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
config/cfgroot/general-functions.pl