mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 01:11:06 +02:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user