mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-15 14:37:36 -07:00
Revert "[Client] ✌️"
This reverts commit 4d35571a58dabddbc0fa4a61ff075ba5ab909c76.
This commit is contained in:
parent
94cd6734ea
commit
28b2770de1
1 changed files with 4 additions and 4 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue