This commit is contained in:
syuilo 2017-12-10 02:48:22 +09:00
parent d0cfe112e1
commit c4369a3489
1 changed files with 1 additions and 1 deletions

View File

@ -378,7 +378,7 @@
this.on('mount', () => { this.on('mount', () => {
this.api('drive').then(info => { 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 color = `hsl(${180 - (usageP * 180)}, 80%, 70%)`;
const strokeDashoffset = (1 - usageP) * (Math.PI * (this.r * 2)); const strokeDashoffset = (1 - usageP) * (Math.PI * (this.r * 2));