From 3770c362f5a10198922bf2b8b54a56c8995404d3 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Mon, 15 Feb 2021 17:58:55 +0100 Subject: [PATCH] stats in transmission --- sink/sink20169.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sink/sink20169.c b/sink/sink20169.c index 3b11a09..ce69c21 100644 --- a/sink/sink20169.c +++ b/sink/sink20169.c @@ -270,7 +270,9 @@ int httpPostRequest(char *url, const char *user, const char *pass, char *payload } int forwardMinuteBuffer(t_forwarderHandle *handle, t_minuteBuffer *buf) { - logmsg(LOG_INFO, "DeviceId: %s", buf->s.deviceId); + logmsg(LOG_INFO, "DeviceId: %s, RunningHours: %u, Powercycles: %u, WatchdogResets: %u", + buf->s.deviceId, buf->s.totalRunningHours, buf->s.totalPowercycles, buf->s.totalWatchdogResets); + t_device *device = findDevice(handle->configHandle, buf->s.deviceId); const char *location = device->location;