Skip to content

Commit

Permalink
Merge pull request #643 from nerakhon/unifi-uptime-fix
Browse files Browse the repository at this point in the history
Add number formatting
  • Loading branch information
mvdkleijn authored Jan 25, 2024
2 parents 8728b17 + de3fb90 commit be7c48e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UniFi/UniFi.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function livestats()
}

if ($detail->subsystem === 'wan') {
$data['wan_avail'] = $detail->uptime_stats->WAN->availability;
$data['wan_avail'] = number_format($detail->uptime_stats->WAN->availability,0);
}
}
} else {
Expand Down

0 comments on commit be7c48e

Please sign in to comment.