commit a7d55d9ab30f58f5a1272b2f4133ed396a61d349
parent 32f4be52b042216ee86f388d1ced4b457745cb76
Author: Remy Noulin <loader2x@gmail.com>
Date: Wed, 2 Aug 2023 19:54:10 +0200
move stray comment in a string causing a bug
heartbeat.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/heartbeat.c b/heartbeat.c
@@ -1131,7 +1131,8 @@ void probe(char *cfgfile, char *secretFile, char *publicFile, char *loggerPublic
bool loggerRunning = u$(agent, "time");
setG(agent, "time", record.time);
char *newstate = m->messageId ? "alive" : "init";
- if (m->messageId < u$(agent," // last message id, if next mId under last one, the agent rebootedmId")) {
+ // last message id, if next mId under last one, the agent rebooted
+ if (m->messageId < u$(agent,"mId")) {
saveEvent = yes;
setG(agent, "rebooted", TRUE);
setG(agent, "lastBoot", record.time);