mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-18 12:14:41 -05:00
Fix avg ping
This commit is contained in:
parent
283d52a861
commit
f3517bc08d
@ -183,13 +183,13 @@ class UptimeCalculator {
|
|||||||
let dailyStatBean = await this.getDailyStatBean(dailyKey);
|
let dailyStatBean = await this.getDailyStatBean(dailyKey);
|
||||||
dailyStatBean.up = dailyData.up;
|
dailyStatBean.up = dailyData.up;
|
||||||
dailyStatBean.down = dailyData.down;
|
dailyStatBean.down = dailyData.down;
|
||||||
dailyStatBean.ping = dailyData.ping;
|
dailyStatBean.ping = dailyData.avgPing;
|
||||||
await R.store(dailyStatBean);
|
await R.store(dailyStatBean);
|
||||||
|
|
||||||
let minutelyStatBean = await this.getMinutelyStatBean(divisionKey);
|
let minutelyStatBean = await this.getMinutelyStatBean(divisionKey);
|
||||||
minutelyStatBean.up = minutelyData.up;
|
minutelyStatBean.up = minutelyData.up;
|
||||||
minutelyStatBean.down = minutelyData.down;
|
minutelyStatBean.down = minutelyData.down;
|
||||||
minutelyStatBean.ping = minutelyData.ping;
|
minutelyStatBean.ping = minutelyData.avgPing;
|
||||||
await R.store(minutelyStatBean);
|
await R.store(minutelyStatBean);
|
||||||
|
|
||||||
// Remove the old data
|
// Remove the old data
|
||||||
|
Loading…
Reference in New Issue
Block a user