From 6a65b72114809448330673c932d420739db55782 Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Fri, 21 Jun 2024 15:11:52 +0200 Subject: rest: add timestamp to shell/output Provide a timestamp that tells when the command output from client was received. --- src/client.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/client.c') diff --git a/src/client.c b/src/client.c index 3affaed..91927d7 100644 --- a/src/client.c +++ b/src/client.c @@ -205,6 +205,7 @@ static int og_resp_shell_run(struct og_client *cli, json_t *data) free((void *)cli->shell.cmd); free((void *)cli->shell.output); + cli->shell.tstamp = time(NULL); cli->shell.cmd = strdup(cmd); cli->shell.output = strdup(output); cli->shell.retcode = retcode; -- cgit v1.2.3-18-g5258