From c56d50041540e3db2b47ef14ef92a4c167e20455 Mon Sep 17 00:00:00 2001 From: Axel Seibert Date: Tue, 10 Jan 2023 18:48:16 +0100 Subject: [PATCH] Update vclient.c small fix to allow the output of system time in a csv file. --- src/vclient.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/vclient.c b/src/vclient.c index 843d32dc..25c9142b 100644 --- a/src/vclient.c +++ b/src/vclient.c @@ -377,7 +377,10 @@ int main(int argc, char *argv[]) continue; } memset(string, 0, sizeof(string)); - sprintf(string, "%f;", resPtr->result); + if (strcmp("getSystemTime", resPtr->cmd)== 0) + sprintf(string, "%s;", resPtr->raw); + else + sprintf(string, "%f;", resPtr->result); strncat(result, string, sizeof(result) - strlen(result) - 1); resPtr = resPtr->next; }