mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-03-04 16:35:57 +00:00
Round response time to nearest ms when using average
This commit is contained in:
parent
da43e1b707
commit
f81c48d1ca
1 changed files with 1 additions and 1 deletions
|
@ -1450,7 +1450,7 @@ class Monitor extends BeanModel {
|
|||
previousBeats.forEach(beat => {
|
||||
actualResponseTime = actualResponseTime + beat.ping;
|
||||
});
|
||||
actualResponseTime = actualResponseTime / previousBeats.length;
|
||||
actualResponseTime = Math.round(actualResponseTime / previousBeats.length);
|
||||
break;
|
||||
|
||||
case "max":
|
||||
|
|
Loading…
Add table
Reference in a new issue