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/data/proto/hostinfo_rsp | 4 ++-- src/data/sql/hi-create.sql | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/data') diff --git a/src/data/proto/hostinfo_rsp b/src/data/proto/hostinfo_rsp index 659a146..af03557 100644 --- a/src/data/proto/hostinfo_rsp +++ b/src/data/proto/hostinfo_rsp @@ -8,8 +8,8 @@ 301d2539908542fd90b6200b4a3b0855 # instance_id 25dc7ea24ac64a299facbe184233c485 - ABBABABEFEFFFFFE # parent_uptime - DEADBEEFAABBCCDD # child_uptime + ABBABABE # parent_uptime + DEADBEEF # child_uptime 8899AABBCCDDEEFF # bne_cnt ABBAABBAABBAABBA # infect_cnt 11223344 # crash_cnt diff --git a/src/data/sql/hi-create.sql b/src/data/sql/hi-create.sql index 8859248..52a7596 100644 --- a/src/data/sql/hi-create.sql +++ b/src/data/sql/hi-create.sql @@ -3,8 +3,8 @@ CREATE TABLE `prne-hi` ( `org_id` binary(16) DEFAULT NULL, `inserted` datetime NOT NULL, `updated` datetime NOT NULL, - `parent_uptime` bigint(20) unsigned DEFAULT NULL, - `child_uptime` bigint(20) unsigned DEFAULT NULL, + `parent_uptime` int(10) unsigned DEFAULT NULL, + `child_uptime` int(10) unsigned DEFAULT NULL, `bne_cnt` bigint(20) unsigned DEFAULT NULL, `infect_cnt` bigint(20) unsigned DEFAULT NULL, `parent_pid` int(11) unsigned DEFAULT NULL, -- cgit