mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2025-02-22 21:31:31 +01:00
Change frame stats API json formatting
This commit is contained in:
parent
e208d5bb5f
commit
a9b66833a9
@ -447,7 +447,8 @@ void GetAPIMessager::netGetFrameStats(char *buf, uint32_t len) {
|
||||
{ "process_name": "TightJPEGEncoder", "time": 20, "count": 64, "area": 12 }
|
||||
],
|
||||
"client_side" : [
|
||||
"123.1.2.1:1211" : {
|
||||
{
|
||||
"client": "123.1.2.1:1211",
|
||||
"client_time": 20,
|
||||
"ping": 20,
|
||||
"processes" : [
|
||||
@ -513,7 +514,8 @@ void GetAPIMessager::netGetFrameStats(char *buf, uint32_t len) {
|
||||
const char *id = it->first.c_str();
|
||||
const clientFrameStats_t &s = it->second;
|
||||
|
||||
fprintf(f, "\t\t\"%s\" : {\n"
|
||||
fprintf(f, "\t\t\{\n"
|
||||
"\t\t\t\"client\": \"%s\",\n"
|
||||
"\t\t\t\"client_time\": %u,\n"
|
||||
"\t\t\t\"ping\": %u,\n"
|
||||
"\t\t\t\"processes\" : [\n"
|
||||
|
Loading…
Reference in New Issue
Block a user