Skip to content

Commit e943ad9

Browse files
authored
Make the results of the timer class use period as the decimal point (#931)
1 parent a5fce77 commit e943ad9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

public_html/lists/admin/connect.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2416,9 +2416,9 @@ public function elapsed($seconds = 0)
24162416
$end = $now['sec'] * 1000000 + $now['usec'];
24172417
$elapsed = $end - $this->start;
24182418
if ($seconds) {
2419-
return sprintf('%0.10f', $elapsed / 1000000);
2419+
return sprintf('%0.10F', $elapsed / 1000000);
24202420
} else {
2421-
return sprintf('%0.10f', $elapsed);
2421+
return sprintf('%0.10F', $elapsed);
24222422
}
24232423
}
24242424

@@ -2434,9 +2434,9 @@ public function interval($seconds = 0)
24342434
$this->previous = $end;
24352435

24362436
if ($seconds) {
2437-
return sprintf('%0.10f', $elapsed / 1000000);
2437+
return sprintf('%0.10F', $elapsed / 1000000);
24382438
} else {
2439-
return sprintf('%0.10f', $elapsed);
2439+
return sprintf('%0.10F', $elapsed);
24402440
}
24412441
}
24422442
}

0 commit comments

Comments
 (0)