summaryrefslogtreecommitdiffstats
path: root/src/rest.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/rest.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/rest.c')
-rw-r--r--src/rest.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rest.c b/src/rest.c
index 4dc7515..082a4e5 100644
--- a/src/rest.c
+++ b/src/rest.c
@@ -813,6 +813,7 @@ static int og_cmd_run_get(json_t *element, struct og_msg_params *params,
}
json_object_set_new(object, "output", output);
json_object_set_new(object, "retcode", json_integer(cli->shell.retcode));
+ json_object_set_new(object, "tstamp", json_integer(cli->shell.tstamp));
json_array_append_new(array, object);
}