Skip to content

Commit cab5b0b

Browse files
committed
fix: UptimeKuma Up/Down counts are always zero
Fix UptimeKuma::livestats() function. An incorrect !== operator, that should be ===, prevent the monitor_status metric lines from being counted by livestats().
1 parent 351cfa0 commit cab5b0b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

UptimeKuma/UptimeKuma.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function livestats()
6262
continue;
6363
}
6464

65-
if (strpos($line, 'monitor_status') !== 0) {
65+
if (strpos($line, 'monitor_status') === 0) {
6666
// If the line is a metric but not a monitor we can ignore it
6767
continue;
6868
}

0 commit comments

Comments
 (0)