Bendr0id / xmrigCC

RandomX, CryptoNight, Argon2 and GhostRider CPU/GPU miner with Command&Control (CC) Server and Monitoring
GNU General Public License v3.0
312 stars 108 forks source link

[Proposal] 'Natural' rounding to improve big numbers readability in dashboard #350

Open electroape opened 3 years ago

electroape commented 3 years ago

Rounds the number to improve readability rounding off insignificant part with the rounding error of no more than 0.5%. Examples : 654654 becomes 655000, rounding error 0.05% 12345 becomes 12300, rounding error 0.36% 2345 becomes 2350, rounding error 0.2% 51.8 becomes 52, rounding error 0.39% Visual example in dashboard (numbers are randomized) : https://imgur.com/WznmuTR Code : https://github.com/uz-spark/xmrigCC-fork/commit/3e5945c7e8d86cde9a425c5688e92c7bbed7953b