aboutsummaryrefslogtreecommitdiff
path: root/src/proone-htbthost.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-htbthost.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-htbthost.c')
-rw-r--r--src/proone-htbthost.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/proone-htbthost.c b/src/proone-htbthost.c
index b34fdf5..106d899 100644
--- a/src/proone-htbthost.c
+++ b/src/proone-htbthost.c
@@ -81,7 +81,7 @@ static bool cb_hostinfo (void *ctx, prne_htbt_host_info_t *out) {
int fd;
now = prne_gettime(CLOCK_MONOTONIC);
- out->child_uptime = out->parent_uptime = prne_sub_timespec(
+ out->child_uptime = out->parent_uptime = (uint32_t)prne_sub_timespec(
now,
proc_start).tv_sec;
out->bne_cnt = 0;