mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2024-11-25 09:33:50 +01:00
Change stats format to JSON array style
This commit is contained in:
parent
88a9bed022
commit
b30318a68f
@ -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));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user