infoviewer_bb: fix flickering HDD bar display

Origin commit data
------------------
Branch: ni/coolstream
Commit: 8b6683660a
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-02-17 (Sun, 17 Feb 2013)


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

------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2013-02-17 18:04:11 +01:00
parent e60eeb592d
commit 42cb91e883

View File

@@ -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);
}