]> andersk Git - moira.git/commitdiff
Remove magic constant; always return least overallocated partition.
authorzacheiss <zacheiss>
Fri, 11 Jun 2004 21:07:44 +0000 (21:07 +0000)
committerzacheiss <zacheiss>
Fri, 11 Jun 2004 21:07:44 +0000 (21:07 +0000)
incremental/afs/afs_utils.pl

index 57a2656eeeffbcfab02e58d3ac542c5b5c558dea..812741f427ead39a7871899490b6895e541ab148 100644 (file)
@@ -82,7 +82,7 @@ sub afs_find
 {
     local($cell,$type,$quota,@except) = @_;
     local($j,$k);
-    local(@max) = ("", "", -10000000000);
+    local(@max) = ("", "", undef);
 
     &afs_lock;
     chop(@afs_data);
@@ -96,7 +96,7 @@ sub afs_find
        }
        $alloc = $used if ($alloc < $used);
        $j = 2*$total - $used - $alloc;
-       @max = ($asrv,$apart,$j) if (! @max || $j > $max[2]);
+       @max = ($asrv,$apart,$j) if (!$max[2] || $j > $max[2]);
     }
 
     &afs_unlock;
This page took 0.098333 seconds and 5 git commands to generate.