mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
Merge pull request #32838 from markuszeller/bugfix/32837/implicitFloatConversion
Cast to int
This commit is contained in:
commit
175ac79f97
1 changed files with 1 additions and 1 deletions
|
|
@ -306,7 +306,7 @@ class Scan extends Base {
|
|||
* @return string
|
||||
*/
|
||||
protected function formatExecTime() {
|
||||
$secs = round($this->execTime);
|
||||
$secs = (int)round($this->execTime);
|
||||
# convert seconds into HH:MM:SS form
|
||||
return sprintf('%02d:%02d:%02d', (int)($secs / 3600), ((int)($secs / 60) % 60), $secs % 60);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue