Skip to content

Commit 63cf6ee

Browse files
authored
fix: round cpu usage in chart (pterodactyl#4182)
fixes pterodactyl#4168
1 parent 16725e6 commit 63cf6ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/scripts/components/server/console/StatGraphs.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export default () => {
5757
return;
5858
}
5959

60-
cpu.push(values.cpu_absolute);
60+
cpu.push(values.cpu_absolute.toFixed(2));
6161
memory.push(Math.floor(values.memory_bytes / 1024 / 1024));
6262
network.push([
6363
previous.current.tx < 0 ? 0 : Math.max(0, values.network.tx_bytes - previous.current.tx),

0 commit comments

Comments
 (0)