From b30318a68f4d11ea5e956fc49c24a8157d889aa4 Mon Sep 17 00:00:00 2001 From: Lauri Kasanen Date: Mon, 28 Sep 2020 14:26:38 +0300 Subject: [PATCH] Change stats format to JSON array style --- common/rfb/VNCSConnectionST.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/rfb/VNCSConnectionST.cxx b/common/rfb/VNCSConnectionST.cxx index 61b72d7..fc4581d 100644 --- a/common/rfb/VNCSConnectionST.cxx +++ b/common/rfb/VNCSConnectionST.cxx @@ -1335,8 +1335,7 @@ void VNCSConnectionST::sendStats() { #define ten(x) (10 - x * 10.0f) - sprintf(buf, "CPU: %.1f/10 recent, %.1f/10 total\n" - "Net: %.1f/10 recent, %.1f/10 total", + sprintf(buf, "[ %.1f, %.1f, %.1f, %.1f ]", ten(cpu_recent), ten(cpu_total), ten(net_recent), ten(net_total));