summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Reiss <jreiss@multitech.com>2021-06-21 10:52:01 -0500
committerJason Reiss <jreiss@multitech.com>2021-06-21 10:52:01 -0500
commit8406b3a9ba85f65b222452b5e22a7cde2e253d13 (patch)
treef319cb422d7fcae7f4d79300533e9d5db72a1f6c
parentea0593a22cc71bebfcbce46836940d363c674b7c (diff)
downloadpacket_forwarder_mtac_full-8406b3a9ba85f65b222452b5e22a7cde2e253d13.tar.gz
packet_forwarder_mtac_full-8406b3a9ba85f65b222452b5e22a7cde2e253d13.tar.bz2
packet_forwarder_mtac_full-8406b3a9ba85f65b222452b5e22a7cde2e253d13.zip
fix difftime call args4.0.12
-rw-r--r--lora_pkt_fwd/src/lora_pkt_fwd.c2
1 files changed, 1 insertions, 1 deletions
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);
}