pterodactyl / panel

Pterodactyl® is a free, open-source game server management panel built with PHP, React, and Go. Designed with security in mind, Pterodactyl runs all game servers in isolated Docker containers while exposing a beautiful and intuitive UI to end users.
https://pterodactyl.io
Other
6.7k stars 1.7k forks source link

CPU percentage not rounding off to 0.001 or less #4200

Closed DemsarMa closed 2 years ago

DemsarMa commented 2 years ago

Current Behavior

Sometimes, the CPU usage graph percentage is rounding to too many decimal units (too many zeros..) since the new update (1.9.1).

image

Expected Behavior

Visual bug, too many decimal units.

Steps to Reproduce

Latest version (1.9.1), running a container with an official BungeeCord egg.

Panel Version

1.9.1

Wings Version

1.6.4

Games and/or Eggs Affected

Minecraft (BungeeCord)

Docker Image

ghcr.io/software-noob/pterodactyl-images:java_17

Error Logs

No response

Is there an existing issue for this?

Bencor29 commented 2 years ago

Hi, I've just updated my panel and have the same issue. Wrong decimal units

Panel Version: 1.9.1 Wings Version: 1.6.4 Game: Minecraft - Cauldron 1.7.10 (Custom Egg) Docker Image: quay.io/parkervcp/pterodactyl-images:debian_openjdk-8-jre

PS: This issue affect all my servers (Spigot 1.12.2 / Custom NPM Egg)

EmmaKnijn commented 2 years ago

all i can say is, computers suck at floating point math, not an excuse tho

djohts commented 2 years ago

can reproduce on v1.9.1 image