We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b32f8bf + 78b5ce8 commit 75be9d7Copy full SHA for 75be9d7
src/Log/Prometheus.php
@@ -76,7 +76,7 @@ public function onBackupEnd(Event\Backup\End $event)
76
{
77
$this->backupStats[$event->getConfiguration()->getName()]['timeEnd'] = microtime(true);
78
$this->backupStats[$event->getConfiguration()->getName()]['lastRun'] = microtime(true);
79
- $this->backupStats[$event->getConfiguration()->getName()]['size'] = $event->getTarget()->getSize();
+ $this->backupStats[$event->getConfiguration()->getName()]['size'] = $event->getTarget()->getSize() ?? 0;
80
}
81
82
/**
0 commit comments