mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
infoviewer_bb: fix flickering HDD bar display
Signed-off-by: Jacek Jendrzej <crashdvb@googlemail.com>
Origin commit data
------------------
Commit: de6e94cb9d
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-02-17 (Sun, 17 Feb 2013)
This commit is contained in:
committed by
Jacek Jendrzej
parent
effb1aaeab
commit
2fe01f8e82
@@ -631,12 +631,11 @@ void CInfoViewerBB::showSysfsHdd()
|
||||
void* CInfoViewerBB::hddperThread(void *arg)
|
||||
{
|
||||
CInfoViewerBB *infoViewerBB = (CInfoViewerBB*) arg;
|
||||
|
||||
infoViewerBB->hddpercent = 0;
|
||||
long t, u;
|
||||
if (get_fs_usage(g_settings.network_nfs_recordingdir, t, u))
|
||||
infoViewerBB->hddpercent = (u * 100ULL) / t;
|
||||
|
||||
else
|
||||
infoViewerBB->hddpercent = 0;
|
||||
infoViewerBB->hddperTflag=false;
|
||||
pthread_exit(NULL);
|
||||
}
|
||||
|
Reference in New Issue
Block a user