Skip to content

Commit 716b546

Browse files
authored
Update Prometheus.php
1 parent 6c43694 commit 716b546

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
@@ -122,7 +122,7 @@ public function onPhpbuEnd(End $event)
122122
$this->write('# HELP phpbu_backup_size The size of the last successful backup' . PHP_EOL);
123123
$this->write('# TYPE phpbu_backup_size gauge' . PHP_EOL);
124124
foreach ($this->backupStats as $backupName => $backupStats) {
125-
if($this->backupStats[$backupName]['size'] = " ") {
125+
if($this->backupStats[$backupName]['size'] = "") {
126126
$this->backupStats[$backupName]['size'] = 0;
127127
}
128128
$this->write(

0 commit comments

Comments
 (0)