mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2025-01-21 13:02:53 +09:00
Fix bug
This commit is contained in:
parent
836d2791c6
commit
fd0e84185b
@ -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));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user