mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
Merge remote-tracking branch 'neutrino-mp/master' into pu/mp
Conflicts: src/neutrino.cpp src/nhttpd/tuxboxapi/neutrinoyparser.cpp
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
Author: Guenther@tuxbox.berlios.org
|
||||
based on code of Steffen Hehn 'McClean'
|
||||
|
||||
(C) 2009-2014 Stefan Seyfried
|
||||
(C) 2009-2015 Stefan Seyfried
|
||||
(C) 2016 Sven Hoefer
|
||||
|
||||
outsourced:
|
||||
@@ -1553,7 +1553,7 @@ void CMovieBrowser::info_hdd_level(bool paint_hdd)
|
||||
if (getSelectedFile() != NULL) {
|
||||
if (::statfs(getSelectedFile()->Name.c_str(), &s) == 0) {
|
||||
long blocks_used = s.f_blocks - s.f_bfree;
|
||||
blocks_percent_used = (long)(blocks_used * 100.0 / (blocks_used + s.f_bavail) + 0.5);
|
||||
blocks_percent_used = (blocks_used * 1000 / (blocks_used + s.f_bavail) + 5)/10;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user