Browse Source

php - correct hour overflow calculation in howmanyhrs

master
kanoi 9 years ago
parent
commit
92f7d8ce38
  1. 6
      pool/base.php

6
pool/base.php

@ -123,10 +123,10 @@ function howmanyhrs($tot, $days = false, $dh = false)
if ($min >= 30) if ($min >= 30)
{ {
$hr++; $hr++;
if ($hr == 24) if ($hr > 23)
{ {
$days++; $dy++;
$hr = 0; $hr -= 24;
} }
} }
$ds = ''; $ds = '';

Loading…
Cancel
Save