diff --git a/src/gui/infoviewer_bb.cpp b/src/gui/infoviewer_bb.cpp index e57ca7231..5ac2f1970 100644 --- a/src/gui/infoviewer_bb.cpp +++ b/src/gui/infoviewer_bb.cpp @@ -108,6 +108,13 @@ void CInfoViewerBB::Init() tmp_bbButtonInfoText[i] = ""; } + // get HDD info in a separate thread + if (g_settings.infobar_show_sysfs_hdd && !hddperTflag) { + hddperTflag=true; + pthread_create(&hddperT, NULL, hddperThread, (void*) this); + pthread_detach(hddperT); + } + InfoHeightY_Info = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL]->getHeight() + 5; setBBOffset(); @@ -614,13 +621,6 @@ void CInfoViewerBB::showSysfsHdd() percent = (u * 100ULL) / t; showBarSys(percent); - //HDD info in a seperate thread - if(!hddperTflag) { - hddperTflag=true; - pthread_create(&hddperT, NULL, hddperThread, (void*) this); - pthread_detach(hddperT); - } - if (check_dir(g_settings.network_nfs_recordingdir) == 0) showBarHdd(hddpercent); else