mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 09:21:18 +02:00
infoviewer_bb: fix flickering HDD bar display
This commit is contained in:
@@ -619,12 +619,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