Change stats format to JSON array style

This commit is contained in:
Lauri Kasanen 2020-09-28 14:26:38 +03:00
parent 88a9bed022
commit b30318a68f

View File

@ -1335,8 +1335,7 @@ void VNCSConnectionST::sendStats() {
#define ten(x) (10 - x * 10.0f) #define ten(x) (10 - x * 10.0f)
sprintf(buf, "CPU: %.1f/10 recent, %.1f/10 total\n" sprintf(buf, "[ %.1f, %.1f, %.1f, %.1f ]",
"Net: %.1f/10 recent, %.1f/10 total",
ten(cpu_recent), ten(cpu_total), ten(cpu_recent), ten(cpu_total),
ten(net_recent), ten(net_total)); ten(net_recent), ten(net_total));