Skip to content

Commit 4c32a25

Browse files
authored
Update Prometheus.php
1 parent fa16fe1 commit 4c32a25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Log/Prometheus.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function onBackupEnd(Event\Backup\End $event)
7676
{
7777
$this->backupStats[$event->getConfiguration()->getName()]['timeEnd'] = microtime(true);
7878
$this->backupStats[$event->getConfiguration()->getName()]['lastRun'] = microtime(true);
79-
$this->backupStats[$event->getConfiguration()->getName()]['size'] = $event->getTarget()->getSize();
79+
$this->backupStats[$event->getConfiguration()->getName()]['size'] = empty(trim($event->getTarget()->getSize())) ?? "0" : $event->getTarget()->getSize();
8080
}
8181
8282
/**

0 commit comments

Comments
 (0)