mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-03 02:41:21 +02:00
neutrino: Fit various functions to the changed at get_fs_usage()
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