mirror of
https://github.com/pterodactyl/panel.git
synced 2024-11-23 01:22:30 +01:00
Do a nice fast animation
This commit is contained in:
parent
29834a33f8
commit
5301ab4235
@ -17,10 +17,7 @@ const chartDefaults: ChartConfiguration = {
|
||||
enabled: false,
|
||||
},
|
||||
animation: {
|
||||
duration: 0,
|
||||
},
|
||||
hover: {
|
||||
animationDuration: 0,
|
||||
duration: 250,
|
||||
},
|
||||
elements: {
|
||||
point: {
|
||||
@ -58,7 +55,6 @@ const chartDefaults: ChartConfiguration = {
|
||||
},
|
||||
} ],
|
||||
},
|
||||
responsiveAnimationDuration: 0,
|
||||
},
|
||||
};
|
||||
|
||||
@ -133,7 +129,7 @@ export default () => {
|
||||
data.push(bytesToMegabytes(stats.memory_bytes));
|
||||
data.shift();
|
||||
|
||||
memory.update();
|
||||
memory.update({ lazy: true });
|
||||
}
|
||||
|
||||
if (cpu && cpu.data.datasets) {
|
||||
@ -142,7 +138,7 @@ export default () => {
|
||||
data.push(stats.cpu_absolute);
|
||||
data.shift();
|
||||
|
||||
cpu.update();
|
||||
cpu.update({ lazy: true });
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user