mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +02:00
e963add18e9ff068adb3ab6dc3d1d3d4f4118e0e
Before, the units to display for filesystems / memory was based solely
on the filesystem type. This would lead to e.g. a 16MB FAT partition
being displayed as "0.01G" which is not too useful. Additionally, the
code made the distinction between RAM and FS in many places. Simplify
the code by determining the total/free/used in bytes, then pass that
number to a conversion function which returns a string with suffix.
Additional benefit: avoids use of float, code size significantly
smaller.
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1375 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Commit: fd8a469974
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2011-04-02 (Sat, 02 Apr 2011)
The file is empty.
Description
Languages
C++
85%
C
12.5%
Shell
0.6%
Makefile
0.6%
M4
0.5%
Other
0.7%