From ba434d88a2a73aeaa502d7d3c9777ad72d08f0d3 Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Wed, 28 May 2025 00:45:10 +0200 Subject: [PATCH] improved output. --- apps/aqhome-tool/nodes/getnodes.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/aqhome-tool/nodes/getnodes.c b/apps/aqhome-tool/nodes/getnodes.c index 23dfd66..9f08745 100644 --- a/apps/aqhome-tool/nodes/getnodes.c +++ b/apps/aqhome-tool/nodes/getnodes.c @@ -170,7 +170,13 @@ void _printNode(const AQH_NODE_INFO *ni, int printAll) fprintf(stdout, ", firmware=%d.%d.%d (%d), ", (u>>16) & 0xff, (u>>8) & 0xff, u & 0xff, (u>>24) & 0xff); if (ts) - fprintf(stdout, "last seen %s, ", GWEN_Timestamp_GetString(ts)); + fprintf(stdout, "last seen %04d/%02d/%02d-%02d:%02d:%02d, ", + GWEN_Timestamp_GetYear(ts), + GWEN_Timestamp_GetMonth(ts), + GWEN_Timestamp_GetDay(ts), + GWEN_Timestamp_GetHour(ts), + GWEN_Timestamp_GetMinute(ts), + GWEN_Timestamp_GetSecond(ts)); fprintf(stdout, "pkg out: %d, pkg in: %d, collisions: %d, busy: %d, crc: %d, io: %d\n", AQH_NodeInfo_GetStatsPacketsOut(ni), AQH_NodeInfo_GetStatsPacketsIn(ni),