From 28b2770de1d8af785f06ff004303bae7f564bef9 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 10 Jun 2017 02:49:44 +0900 Subject: [PATCH] Revert "[Client] :v:" This reverts commit 4d35571a58dabddbc0fa4a61ff075ba5ab909c76. --- src/web/app/desktop/tags/home-widgets/server.tag | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/web/app/desktop/tags/home-widgets/server.tag b/src/web/app/desktop/tags/home-widgets/server.tag index 23fba179e..44249352e 100644 --- a/src/web/app/desktop/tags/home-widgets/server.tag +++ b/src/web/app/desktop/tags/home-widgets/server.tag @@ -254,11 +254,11 @@ }); this.onStats = stats => { - stats.disk.used = stats.disk.available - stats.disk.free; + stats.disk.used = stats.disk.total - stats.disk.free; - const color = `hsl(${180 - (stats.disk.used / stats.disk.available * 180)}, 80%, 70%)`; - const p = (stats.disk.used / stats.disk.available * 100).toFixed(0); - const strokeDashoffset = (1 - (stats.disk.used / stats.disk.available)) * (Math.PI * (this.r * 2)); + const color = `hsl(${180 - (stats.disk.used / stats.disk.total * 180)}, 80%, 70%)`; + const p = (stats.disk.used / stats.disk.total * 100).toFixed(0); + const strokeDashoffset = (1 - (stats.disk.used / stats.disk.total)) * (Math.PI * (this.r * 2)); this.update({ color,