From bffa2be267ab1fdafbc6c9348df053e477e63f49 Mon Sep 17 00:00:00 2001
From: Guo Wenxue <guowenxue@gmail.com>
Date: Fri, 08 Sep 2023 11:18:24 +0800
Subject: [PATCH] update socketd project and test okay

---
 project/socketd/booster/packet.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/project/socketd/booster/packet.c b/project/socketd/booster/packet.c
index a6075fe..6aa76a4 100644
--- a/project/socketd/booster/packet.c
+++ b/project/socketd/booster/packet.c
@@ -40,7 +40,6 @@
         return -1;
     }
 
-
     time_t now = time(NULL);
     localtime_r(&now, ptm);
 
@@ -59,10 +58,9 @@
     }
 
     ptm = &pack_info->sample_time;
-    snprintf(strtime, sizeof(strtime), "%04d-%02d-%2d %02d:%02d:%02d",
+    snprintf(strtime, sizeof(strtime), "%04d-%02d-%02d %02d:%02d:%02d",
             ptm->tm_year+1900, ptm->tm_mon+1, ptm->tm_mday,
             ptm->tm_hour, ptm->tm_min, ptm->tm_sec);
-
 
     memset(pack_buf, 0, size);
     snprintf(pack_buf, size, "%s|%s|%.3f", pack_info->devid, strtime, pack_info->temper);

--
Gitblit v1.9.1