Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions UptimeKuma/UptimeKuma.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ public function livestats()
];

foreach ($lines as $line) {
if (strlen($line) === 0 || strpos($line, '#') === 0) {
if (strlen($line) === 0 || strpos($line, '#') !== 0) {
// If the line is empty or is a comment we can skip it
continue;
}

if (strpos($line, 'monitor_status') === 0) {
if (strpos($line, 'monitor_status') !== 0) {
// If the line is a metric but not a monitor we can ignore it
continue;
}
Expand Down