aboutsummaryrefslogtreecommitdiff
path: root/src/proone-hostinfod.c
diff options
context:
space:
mode:
authorDavid Timber <mieabby@gmail.com>2021-08-16 21:35:20 +1000
committerDavid Timber <mieabby@gmail.com>2021-08-16 21:35:20 +1000
commita161674bcee21384a73834e3ca16ad3bf1c70cf3 (patch)
tree3a42a20055ce6bed9eb679e1bd169a03b0ae5528 /src/proone-hostinfod.c
parentf8afe0c17c248e7eda1be258786a089f5bf6c3bf (diff)
Protocol change: change hostinfo uptime ...
* Change hostinfo parent_uptime and child_uptime to uint32_t (138 years is a long time)
Diffstat (limited to 'src/proone-hostinfod.c')
-rw-r--r--src/proone-hostinfod.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/proone-hostinfod.c b/src/proone-hostinfod.c
index e5f45e6..8a9e967 100644
--- a/src/proone-hostinfod.c
+++ b/src/proone-hostinfod.c
@@ -701,8 +701,8 @@ static int build_hostinfo_query_str (
"%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X'),\n"
"\t@`org_id` = UNHEX('"
"%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X'),\n"
- "\t@`parent_uptime` = %"PRIu64",\n"
- "\t@`child_uptime` = %"PRIu64",\n"
+ "\t@`parent_uptime` = %"PRIu32",\n"
+ "\t@`child_uptime` = %"PRIu32",\n"
"\t@`bne_cnt` = %"PRIu64",\n"
"\t@`infect_cnt` = %"PRIu64",\n"
"\t@`parent_pid` = %"PRIu32",\n"
@@ -961,8 +961,8 @@ static bool handle_db_qe (
fprintf(
stderr,
"db@%"PRIxPTR": hostinfo("
- "parent_uptime = %"PRIu64", "
- "child_uptime = %"PRIu64", "
+ "parent_uptime = %"PRIu32", "
+ "child_uptime = %"PRIu32", "
"bne_cnt = %"PRIu64", "
"infect_cnt = %"PRIu64", "
"parent_pid = %"PRIu32", "