apinger: fix time_t format
authorRosen Penev <rosenp@gmail.com>
Mon, 24 Jun 2024 21:42:36 +0000 (14:42 -0700)
committerRosen Penev <rosenp@gmail.com>
Sat, 29 Jun 2024 23:51:22 +0000 (16:51 -0700)
Needs to be 64-bit.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
net/apinger/Makefile
net/apinger/patches/050-statusformat.patch

index e37a9b3e5d1833c187c21a46babb4096ccac9f71..85013f824d0648f97a546581e3508a6cb7301ec0 100644 (file)
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
 PKG_NAME:=apinger
 PKG_SOURCE_DATE:=2015-04-09
 PKG_SOURCE_VERSION:=78eb328721ba1a10571c19df95acddcb5f0c17c8
-PKG_RELEASE:=7
+PKG_RELEASE:=8
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_URL:=https://github.com/Jajcus/apinger
index dee865b8ac696dde184528a44114e9c5f7d4477c..e835bfb1e2f3c1a3eb9a1b9afe6fb1997a6c067e 100644 (file)
@@ -14,8 +14,8 @@
 -                      ctime(&t->last_received_tv.tv_sec));
 -              fprintf(f,"Average delay: %0.3fms\n",AVG_DELAY(t));
 +              if(config->status_format){
-+                      fprintf(f,"%s|%s|%s|%i|%i|%u|",t->name, t->config->srcip, t->description, t->last_sent+1,
-+                               t->received, t->last_received_tv.tv_sec);
++                      fprintf(f,"%s|%s|%s|%i|%i|%" PRIu64 "|",t->name, t->config->srcip, t->description, t->last_sent+1,
++                               t->received, (uint64_t)t->last_received_tv.tv_sec);
 +                      fprintf(f,"%0.3fms|", AVG_DELAY(t));
 +              }
 +              else{