From 8406b3a9ba85f65b222452b5e22a7cde2e253d13 Mon Sep 17 00:00:00 2001 From: Jason Reiss Date: Mon, 21 Jun 2021 10:52:01 -0500 Subject: fix difftime call args --- lora_pkt_fwd/src/lora_pkt_fwd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lora_pkt_fwd/src/lora_pkt_fwd.c b/lora_pkt_fwd/src/lora_pkt_fwd.c index d1f74ba..a971dc0 100644 --- a/lora_pkt_fwd/src/lora_pkt_fwd.c +++ b/lora_pkt_fwd/src/lora_pkt_fwd.c @@ -2013,7 +2013,7 @@ int main(int argc, char** argv) clock_gettime(CLOCK_MONOTONIC, &check_time); - if ((int)(difftimespec(recv_time, send_time)) > (10 * 60 * 60)) { // allow forwarder to run a maximum of 10 hours before forcing a restart + if ((int)(difftimespec(check_time, start_time)) > (10 * 60 * 60)) { // allow forwarder to run a maximum of 10 hours before forcing a restart MSG("INFO: periodic restart, process is exiting.\n"); exit(1); } -- cgit v1.2.3