mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-07-24 23:35:46 -04:00
Merge remote-tracking branch 'origin/master'
# Conflicts: # package-lock.json
This commit is contained in:
commit
c39043ec32
4 changed files with 5 additions and 17 deletions
|
@ -1137,7 +1137,7 @@ class Monitor extends BeanModel {
|
|||
if (hasClients) {
|
||||
// Send 24 hour average ping
|
||||
let data24h = await uptimeCalculator.get24Hour();
|
||||
io.to(userID).emit("avgPing", monitorID, (data24h.avgPing) ? data24h.avgPing.toFixed(2) : null);
|
||||
io.to(userID).emit("avgPing", monitorID, (data24h.avgPing) ? Number(data24h.avgPing.toFixed(2)) : null);
|
||||
|
||||
// Send 24 hour uptime
|
||||
io.to(userID).emit("uptime", monitorID, 24, data24h.uptime);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue