|
|
@ -35,8 +35,8 @@ export default {
|
|
|
|
if (this.$root.uptimeList[key] !== undefined) {
|
|
|
|
if (this.$root.uptimeList[key] !== undefined) {
|
|
|
|
let result = Math.round(this.$root.uptimeList[key] * 10000) / 100;
|
|
|
|
let result = Math.round(this.$root.uptimeList[key] * 10000) / 100;
|
|
|
|
// Only perform sanity check on status page. See louislam/uptime-kuma#2628
|
|
|
|
// Only perform sanity check on status page. See louislam/uptime-kuma#2628
|
|
|
|
if (this.$route.path.startsWith("/status")) {
|
|
|
|
if (this.$route.path.startsWith("/status") && result > 100) {
|
|
|
|
return result > 100 ? "100%" : result + "%";
|
|
|
|
return "100%";
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
return result + "%";
|
|
|
|
return result + "%";
|
|
|
|
}
|
|
|
|
}
|
|
|
|