mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed the type of MBperMinute in cVideoDiskUsage::HasChanged()
This commit is contained in:
parent
e595e3b1d4
commit
6dec09a376
@ -995,6 +995,7 @@ Andreas Mair <andreas@vdr-developer.org>
|
||||
for fixing handling 3 and 4 byte UTF-8 symbols in Utf8CharGet()
|
||||
for fixing initializing the timer's flags in the cTimer copy constructor
|
||||
for reporting a crash in case CutRecording() is called from a plugin
|
||||
for fixing the type of MBperMinute in cVideoDiskUsage::HasChanged()
|
||||
|
||||
Olivier Jacques <jacquesolivier@hotmail.com>)
|
||||
for translating OSD texts to the French language
|
||||
|
2
HISTORY
2
HISTORY
@ -7177,3 +7177,5 @@ Video Disk Recorder Revision History
|
||||
folder is initially set to "by time".
|
||||
- Fixed several spelling errors (thanks to Ville Skyttä).
|
||||
- Fixed handling recording with more than two bonded devices.
|
||||
- Fixed the type of MBperMinute in cVideoDiskUsage::HasChanged() (thanks to Andreas
|
||||
Mair).
|
||||
|
@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: videodir.c 2.1 2012/04/22 15:03:10 kls Exp $
|
||||
* $Id: videodir.c 2.2 2012/06/10 13:45:21 kls Exp $
|
||||
*/
|
||||
|
||||
#include "videodir.h"
|
||||
@ -261,7 +261,7 @@ bool cVideoDiskUsage::HasChanged(int &State)
|
||||
if (FreeMB != freeMB) {
|
||||
usedPercent = UsedPercent;
|
||||
freeMB = FreeMB;
|
||||
int MBperMinute = Recordings.MBperMinute();
|
||||
double MBperMinute = Recordings.MBperMinute();
|
||||
if (MBperMinute <= 0)
|
||||
MBperMinute = MB_PER_MINUTE;
|
||||
freeMinutes = int(double(FreeMB) / MBperMinute);
|
||||
|
Loading…
Reference in New Issue
Block a user