Skip to content

Commit d2ad2c1

Browse files
authored
Update Prometheus.php
1 parent 9b8567e commit d2ad2c1

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" : $this->backupStats[$backupName]['size']) .
128128
PHP_EOL
129129
);
130130
}

0 commit comments

Comments
 (0)