Signed-off-by: Markus Zeller <git@markuszeller.com>
This commit is contained in:
Markus Zeller 2022-06-12 15:01:22 +02:00 committed by backportbot-nextcloud[bot]
parent e9e248dd13
commit 09cdccb3d3

View file

@ -289,7 +289,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);
}