From 281d661fc9c7f1ee9777ff17c2de88cd8ec959a4 Mon Sep 17 00:00:00 2001 From: "Jose M. Guisado" Date: Wed, 2 Feb 2022 17:35:49 +0100 Subject: #1065 og_client_status compatible with webconsole Report linux and windows client status in a compatible manner with webconsole. This way clients are colored accordingly in a room view depending on their status. WIN/WINS: Windows, Windows session LNX/LNXS: Linux, Linux session --- src/rest.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/rest.c b/src/rest.c index dab4ee2..37dcc99 100644 --- a/src/rest.c +++ b/src/rest.c @@ -133,13 +133,13 @@ static const char *og_client_status(const struct og_client *cli) case OG_CLIENT_STATUS_VIRTUAL: return "VDI"; case OG_CLIENT_STATUS_LINUX: - return "LINUX"; + return "LNX"; case OG_CLIENT_STATUS_LINUX_SESSION: - return "LINUX-SESSION"; + return "LNXS"; case OG_CLIENT_STATUS_WIN: return "WIN"; case OG_CLIENT_STATUS_WIN_SESSION: - return "WIN-SESSION"; + return "WINS"; default: return "OFF"; } -- cgit v1.2.3-18-g5258