From 232a5d1fdd20f5251e1a6997cd716fbdcde58651 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Fri, 21 Jan 2011 15:42:38 +0000 Subject: [PATCH] fix git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1037 e54a6e83-5905-42d5-8d5c-058d10e6a962 Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/68604cda2d5843a33e9bb73a1b15cf13f0ee14b3 Author: Jacek Jendrzej Date: 2011-01-21 (Fri, 21 Jan 2011) Origin message was: ------------------ -fix git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1037 e54a6e83-5905-42d5-8d5c-058d10e6a962 ------------------ This commit was generated by Migit --- src/gui/infoviewer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/infoviewer.cpp b/src/gui/infoviewer.cpp index 6e81d0fd8..087a1e79e 100644 --- a/src/gui/infoviewer.cpp +++ b/src/gui/infoviewer.cpp @@ -1343,7 +1343,9 @@ void CInfoViewer::showSNR () per = 0; //HD info if(!check_dir(g_settings.network_nfs_recordingdir)){ - per = (s.f_blocks - s.f_bfree) / (s.f_blocks/100); + if (::statfs(g_settings.network_nfs_recordingdir, &s) == 0) { + per = (s.f_blocks - s.f_bfree) / (s.f_blocks/100); + } } hddscale->paintProgressBar(BoxEndX - (((g_settings.casystem_display !=2) ? 0:icon_crypt_width )+ icon_xres_width + 2*icon_large_width + 2*icon_small_width + ((g_settings.casystem_display !=2) ?5:6)*2) - 102, BBarY + InfoHeightY_Info / 2 + 2, 100, 6, per, 100);