diff options
author | Jason Reiss <jreiss@multitech.com> | 2021-06-21 10:52:01 -0500 |
---|---|---|
committer | Jason Reiss <jreiss@multitech.com> | 2021-06-21 10:52:30 -0500 |
commit | cd1462424ba074616f16fbfa1efca57aaac4945d (patch) | |
tree | d0dca7d7f4eaa2ea651eb7958504a970c47aa6b3 | |
parent | 216bfce30f9dbbda537b3f572875fb0d67dbd8d7 (diff) | |
download | packet_forwarder_mtac_full-cd1462424ba074616f16fbfa1efca57aaac4945d.tar.gz packet_forwarder_mtac_full-cd1462424ba074616f16fbfa1efca57aaac4945d.tar.bz2 packet_forwarder_mtac_full-cd1462424ba074616f16fbfa1efca57aaac4945d.zip |
fix difftime call args4.0.4-7
-rw-r--r-- | lora_pkt_fwd/src/lora_pkt_fwd.c | 2 |
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 fbab482..9ecb369 100644 --- a/lora_pkt_fwd/src/lora_pkt_fwd.c +++ b/lora_pkt_fwd/src/lora_pkt_fwd.c @@ -2017,7 +2017,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); } |