diff options
author | David Timber <mieabby@gmail.com> | 2021-08-16 21:35:20 +1000 |
---|---|---|
committer | David Timber <mieabby@gmail.com> | 2021-08-16 21:35:20 +1000 |
commit | a161674bcee21384a73834e3ca16ad3bf1c70cf3 (patch) | |
tree | 3a42a20055ce6bed9eb679e1bd169a03b0ae5528 /src/proone-htbthost.c | |
parent | f8afe0c17c248e7eda1be258786a089f5bf6c3bf (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.c | 2 |
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; |