Skip to content

Commit 4049f6f

Browse files
authored
Update Prometheus.php
1 parent d2ad2c1 commit 4049f6f

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
@@ -124,7 +124,7 @@ public function onPhpbuEnd(End $event)
124124
foreach ($this->backupStats as $backupName => $backupStats) {
125125
$this->write(
126126
'phpbu_backup_size{name="' . $backupName . '"} ' .
127-
($this->backupStats[$backupName]['size'] = " " ? "0" : $this->backupStats[$backupName]['size']) .
127+
($this->backupStats[$backupName]['size'] ?? "0") .
128128
PHP_EOL
129129
);
130130
}

0 commit comments

Comments
 (0)