mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 09:51:13 +02:00
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:
@@ -619,12 +619,11 @@ void CInfoViewerBB::showSysfsHdd()
|
|||||||
void* CInfoViewerBB::hddperThread(void *arg)
|
void* CInfoViewerBB::hddperThread(void *arg)
|
||||||
{
|
{
|
||||||
CInfoViewerBB *infoViewerBB = (CInfoViewerBB*) arg;
|
CInfoViewerBB *infoViewerBB = (CInfoViewerBB*) arg;
|
||||||
|
|
||||||
infoViewerBB->hddpercent = 0;
|
|
||||||
long t, u;
|
long t, u;
|
||||||
if (get_fs_usage(g_settings.network_nfs_recordingdir, t, u))
|
if (get_fs_usage(g_settings.network_nfs_recordingdir, t, u))
|
||||||
infoViewerBB->hddpercent = (u * 100ULL) / t;
|
infoViewerBB->hddpercent = (u * 100ULL) / t;
|
||||||
|
else
|
||||||
|
infoViewerBB->hddpercent = 0;
|
||||||
infoViewerBB->hddperTflag=false;
|
infoViewerBB->hddperTflag=false;
|
||||||
pthread_exit(NULL);
|
pthread_exit(NULL);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user