Merge pull request #35023 from nextcloud/backport/32838/stable25

[stable25] Cast to int
This commit is contained in:
Simon L 2022-11-08 14:27:33 +01:00 committed by GitHub
commit 83d85bd045
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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