neutrino: Fit various functions to the changed at get_fs_usage()

Origin commit data
------------------
Branch: ni/coolstream
Commit: 4ee8fded80
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-10-08 (Tue, 08 Oct 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Michael Liebmann
2013-10-08 07:28:37 +02:00
parent 981702930d
commit b696f83f9d
4 changed files with 23 additions and 18 deletions

View File

@@ -636,9 +636,9 @@ void CInfoViewerBB::showSysfsHdd()
if (g_settings.infobar_show_sysfs_hdd) {
//sysFS info
int percent = 0;
long t, u;
uint64_t t, u;
if (get_fs_usage("/", t, u))
percent = (u * 100ULL) / t;
percent = (int)((u * 100ULL) / t);
showBarSys(percent);
if (check_dir(g_settings.network_nfs_recordingdir) == 0)
@@ -651,9 +651,9 @@ void CInfoViewerBB::showSysfsHdd()
void* CInfoViewerBB::hddperThread(void *arg)
{
CInfoViewerBB *infoViewerBB = (CInfoViewerBB*) arg;
long t, u;
uint64_t t, u;
if (get_fs_usage(g_settings.network_nfs_recordingdir, t, u))
infoViewerBB->hddpercent = (u * 100ULL) / t;
infoViewerBB->hddpercent = (int)((u * 100ULL) / t);
else
infoViewerBB->hddpercent = 0;
infoViewerBB->hddperTflag=false;