Re: [Announce] xxv-1.3 - Feature release (1.4 rc)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

Am Dienstag, den 14.04.2009, 20:56 +0200 schrieb Marco Göbenich:
> I saw this behavior too, seems that xxv does not like empty recordings 
> (dirs).


You are right, i fixed that with this patch. 
(apply inside directory lib/XXV/MODULES )
        
        
Andreas
        
--- RECORDS.pm.bak
+++ RECORDS.pm
@@ -918,7 +918,11 @@
     } else {
       $self->{CapacityFree} = int($totalFree * 3600 / 2000); # use 2GB at one hour as base
     }
-    $self->{CapacityPercent}  = ($totalSpace * 100 / ($totalFree + $totalSpace));
+    if(($totalFree + $totalSpace) > 1) {
+      $self->{CapacityPercent}  = ($totalSpace * 100 / ($totalFree + $totalSpace));
+    } else {
+      $self->{CapacityPercent}  = 0;
+    }
 
 
 
_______________________________________________
vdr mailing list
vdr@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr

[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux