aboutsummaryrefslogtreecommitdiff
path: root/src/data
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/data
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/data')
-rw-r--r--src/data/proto/hostinfo_rsp4
-rw-r--r--src/data/sql/hi-create.sql4
2 files changed, 4 insertions, 4 deletions
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,