From 2fe01f8e82bc16eed77adeb387cb1aa6215670e1 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sun, 17 Feb 2013 18:04:11 +0100 Subject: [PATCH] infoviewer_bb: fix flickering HDD bar display Signed-off-by: Jacek Jendrzej Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/de6e94cb9d36627e45ca4525ee1d2b2a232ff15d Author: Stefan Seyfried Date: 2013-02-17 (Sun, 17 Feb 2013) --- src/gui/infoviewer_bb.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/gui/infoviewer_bb.cpp b/src/gui/infoviewer_bb.cpp index 5ac2f1970..82f53c622 100644 --- a/src/gui/infoviewer_bb.cpp +++ b/src/gui/infoviewer_bb.cpp @@ -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); }