summaryrefslogtreecommitdiffstats
path: root/src/client.c
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2024-06-21 15:11:52 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2024-06-21 15:12:39 +0200
commit6a65b72114809448330673c932d420739db55782 (patch)
treed1da12a70cb0ea508bbe06c315247c88503a8188 /src/client.c
parent6cbe69e89e716f81a71f7541e2e0f036b297a2fc (diff)
rest: add timestamp to shell/output
Provide a timestamp that tells when the command output from client was received.
Diffstat (limited to 'src/client.c')
-rw-r--r--src/client.c1
1 files changed, 1 insertions, 0 deletions
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;