From c4369a3489c8501e18c6840a294f663cf9e9c820 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 10 Dec 2017 02:48:22 +0900 Subject: [PATCH] Fix bug --- src/web/app/desktop/tags/settings.tag | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/app/desktop/tags/settings.tag b/src/web/app/desktop/tags/settings.tag index 3fa1f50fc..f7ecfe3e8 100644 --- a/src/web/app/desktop/tags/settings.tag +++ b/src/web/app/desktop/tags/settings.tag @@ -378,7 +378,7 @@ this.on('mount', () => { this.api('drive').then(info => { - const usageP = info.usage / info.capacity * 100; + const usageP = info.usage / info.capacity; const color = `hsl(${180 - (usageP * 180)}, 80%, 70%)`; const strokeDashoffset = (1 - usageP) * (Math.PI * (this.r * 2));