From a161674bcee21384a73834e3ca16ad3bf1c70cf3 Mon Sep 17 00:00:00 2001 From: David Timber Date: Mon, 16 Aug 2021 21:35:20 +1000 Subject: Protocol change: change hostinfo uptime ... * Change hostinfo parent_uptime and child_uptime to uint32_t (138 years is a long time) --- src/proone-hostinfod.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/proone-hostinfod.c') 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", " -- cgit