Commit fa2ea835 authored by Leigh Stoller's avatar Leigh Stoller

Fix usage statement; only 2 decimal places.

parent 253ae345
...@@ -322,7 +322,7 @@ $PAGEHEADER_FUNCTION = function($thinheader = 0, $ignore1 = NULL, ...@@ -322,7 +322,7 @@ $PAGEHEADER_FUNCTION = function($thinheader = 0, $ignore1 = NULL,
if ($login_user) { if ($login_user) {
list($pcount, $phours) = Instance::CurrentUsage($login_user); list($pcount, $phours) = Instance::CurrentUsage($login_user);
if ($pcount) { if ($pcount) {
$average = $phours / $pcount; $average = sprintf("%.2f", $phours / $pcount);
echo "<center style='margin-bottom: 5px; margin-top: -8px'> echo "<center style='margin-bottom: 5px; margin-top: -8px'>
<span class=text-warning> <span class=text-warning>
......
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