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.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.c')
-rw-r--r-- | src/proone.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/proone.c b/src/proone.c index 6b3905d..686660a 100644 --- a/src/proone.c +++ b/src/proone.c @@ -110,8 +110,12 @@ static bool cb_htbt_cnc_txtrec (void *ctx, char *out) { static bool cb_htbt_hostinfo (void *ctx, prne_htbt_host_info_t *out) { const struct timespec ts_now = prne_gettime(CLOCK_MONOTONIC); - out->parent_uptime = prne_sub_timespec(ts_now, prne_g.parent_start).tv_sec; - out->child_uptime = prne_sub_timespec(ts_now, prne_g.child_start).tv_sec; + out->parent_uptime = (uint32_t)prne_sub_timespec( + ts_now, + prne_g.parent_start).tv_sec; + out->child_uptime = (uint32_t)prne_sub_timespec( + ts_now, + prne_g.child_start).tv_sec; if (prne_s_g != NULL) { memcpy(out->org_id, prne_s_g->org_id, 16); out->bne_cnt = prne_s_g->bne_cnt; |