luci-mod-status: convert bytes into KB / MB / GB on progress bar
authorClaudio Marelli <camarelli@gmx.net>
Fri, 8 Feb 2019 08:46:40 +0000 (09:46 +0100)
committerJo-Philipp Wich <jo@mein.io>
Mon, 8 Apr 2019 07:13:50 +0000 (09:13 +0200)
commit97da884240ce1a75c5a6e82dafba185ba5bb600d
tree264df6a7d39e7d39bc1d229de230ae736cbeb077
parentfaa5f0eacd2b2c90c33a75ee1e7fd3ec776601af
luci-mod-status: convert bytes into KB / MB / GB on progress bar

Currently on the system status page the the memory usage is shown in kB
only. If you have a system with 1 GB of Ram its hard to read the large
numbers. This automatically formats the byte numbers more human readable
into KB / MB / GB.

Submitted-by: Claudio Marelli <camarelli@gmx.net>
[squash commits, rewrap commit message]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-status/htdocs/luci-static/resources/view/status/index.js