]> git.sur5r.net Git - bacula/bacula/commitdiff
bweb: fix fileindex for deleted items
authorEric Bollengier <eric@eb.homelinux.org>
Mon, 15 Mar 2010 08:42:41 +0000 (09:42 +0100)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 15 Mar 2010 08:42:41 +0000 (09:42 +0100)
gui/bweb/cgi/bfileview.pl

index 08eec0b8464cb57f33db89c3d0f00deb2997a3ec..44269385aadf250510dc893fa5cc6ab1a7401b49 100755 (executable)
@@ -362,7 +362,7 @@ sub fv_get_files_size
    FROM File
   WHERE PathId  = $rep
     AND JobId = $jobid
-    AND FileIndex >= 0
+    AND FileIndex > 0
 ");
 
     return $ret->{size};
@@ -380,7 +380,7 @@ sub fv_get_big_files
            FROM File
           WHERE PathId  = $rep
             AND JobId = $jobid
-            AND FileIndex >= 0
+            AND FileIndex > 0
         ) AS S INNER JOIN Filename USING (FilenameId)
    WHERE S.size > $min
    ORDER BY S.size DESC