summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-02-09 14:42:56 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2002-02-09 14:42:56 +0100
commit889e70803fcc653d52e75776470b44cee77409b0 (patch)
tree65730207c4028dc9b0044bfa1b896709f0fcdd6f
parent5abb02b301b893eca757882c178a385b85dae1f1 (diff)
downloadvdr-889e70803fcc653d52e75776470b44cee77409b0.tar.gz
vdr-889e70803fcc653d52e75776470b44cee77409b0.tar.bz2
Changed the estimated data rate for calculating the remaining disk capacity to 25.75 MB/min
-rw-r--r--HISTORY4
-rw-r--r--menu.c9
2 files changed, 8 insertions, 5 deletions
diff --git a/HISTORY b/HISTORY
index 221f7df8..d4feeb0c 100644
--- a/HISTORY
+++ b/HISTORY
@@ -970,7 +970,9 @@ Video Disk Recorder Revision History
- Fixed a problem with the ERR macro defined by ncurses.h (thanks to Artur
Skawina).
-2002-02-05: Version 0.99pre6
+2002-02-09: Version 0.99pre6
- Fixed a bug in moving timers or channels to the last position in the list
(thanks to Matthias Schniedermeyer for helping to debug this one).
+- Changed the estimated data rate for calculating the remaining disk capacity
+ to 25.75 MB/min.
diff --git a/menu.c b/menu.c
index 40ac1859..0c480074 100644
--- a/menu.c
+++ b/menu.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: menu.c 1.148 2002/02/03 15:42:38 kls Exp $
+ * $Id: menu.c 1.149 2002/02/09 14:42:56 kls Exp $
*/
#include "menu.h"
@@ -1944,13 +1944,14 @@ cMenuMain::cMenuMain(bool Replaying, eOSState State)
// Title with disk usage:
-#define MB_PER_MINUTE 30 // this is just an estimate!
+#define MB_PER_MINUTE 25.75 // this is just an estimate!
char buffer[40];
int FreeMB;
int Percent = VideoDiskSpace(&FreeMB);
- int Hours = int(double(FreeMB) / MB_PER_MINUTE / 60);
- int Minutes = (FreeMB / MB_PER_MINUTE) % 60;
+ int Minutes = int(double(FreeMB) / MB_PER_MINUTE);
+ int Hours = Minutes / 60;
+ Minutes %= 60;
snprintf(buffer, sizeof(buffer), "%s - Disk %d%% - %2d:%02d %s", tr("Main"), Percent, Hours, Minutes, tr("free"));
SetTitle(buffer);