Commit bdd28f4a authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Minor bug fix.

parent 694f61c4
...@@ -484,6 +484,9 @@ class Instance ...@@ -484,6 +484,9 @@ class Instance
else else
$diff = $destroyed - $created; $diff = $destroyed - $created;
if ($diff < 0)
$diff = 0;
$phours += $pnodes * ($diff / 3600.0); $phours += $pnodes * ($diff / 3600.0);
} }
return $phours; return $phours;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment