uptime API request fix

pull/746/head v0.90.59
hunterlong 2020-07-14 21:40:34 -07:00
parent eda0c507c5
commit d0bee58cc3
2 changed files with 3 additions and 1 deletions

View File

@ -3,6 +3,7 @@
- Modified JWT token key to be sha256 of API Secret - Modified JWT token key to be sha256 of API Secret
- Modified github actions to build multi-arch Docker images - Modified github actions to build multi-arch Docker images
- Added "update" command to install latest version - Added "update" command to install latest version
- Fixed dashboard uptime_data API request to request correct start/time timestamp
# 0.90.58 (07-09-2020) # 0.90.58 (07-09-2020)
- Fixed ICMP latency/ping durations - Fixed ICMP latency/ping durations

View File

@ -147,7 +147,8 @@
} }
}, },
async getUptime() { async getUptime() {
this.uptime = await Api.service_uptime(this.service.id) const start = this.nowSubtract(3 * 86400)
this.uptime = await Api.service_uptime(this.service.id, this.toUnix(start), this.toUnix(this.now()))
}, },
async loadInfo() { async loadInfo() {
this.set1 = await this.getHits(24 * 7, "6h") this.set1 = await this.getHits(24 * 7, "6h")