Skip to content

Commit 3e3d87a

Browse files
Merge branch 'main' into 6.0
2 parents 9a5fb8c + 75be9d7 commit 3e3d87a

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'] = $event->getTarget()->getSize() ?? 0;
8080
}
8181

8282
/**

0 commit comments

Comments
 (0)