summaryrefslogtreecommitdiff
path: root/src/ot_fullscrape.c
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2026-11-06 14:24:04 +0100
committerDirk Engling <erdgeist@erdgeist.org>2026-11-06 14:24:04 +0100
commit355c8ae57d582974f4f6a4ba42f635f2253b84a7 (patch)
tree81536ae109b37242217c818ae3a6b2c193fb8ff3 /src/ot_fullscrape.c
parent367ff65242ca88fd6435d04a577a43cec5de92fe (diff)
Add a wall clock helper so that statedumps can be written and re-read
Diffstat (limited to 'src/ot_fullscrape.c')
-rw-r--r--src/ot_fullscrape.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ot_fullscrape.c b/src/ot_fullscrape.c
index 85be65d..ef39a17 100644
--- a/src/ot_fullscrape.c
+++ b/src/ot_fullscrape.c
@@ -131,7 +131,7 @@ static void fullscrape_write_one( ot_tasktype mode, char **cursor, ot_torrent *t
131 case TASK_FULLSCRAPE_TRACKERSTATE: 131 case TASK_FULLSCRAPE_TRACKERSTATE:
132 hex_from_hash(r, *hash); 132 hex_from_hash(r, *hash);
133 r += 2 * sizeof(ot_hash); 133 r += 2 * sizeof(ot_hash);
134 fmt_append(&r, r_end, ":%zd:%zd\n", (ssize_t)time_since_minutes(torrent->peer_list6->base), down_count); 134 fmt_append(&r, r_end, ":%zd:%zd\n", (ssize_t)(time_wall_minutes() - time_since_minutes(torrent->peer_list6->base)), down_count);
135 break; 135 break;
136 } 136 }
137 *cursor = r; 137 *cursor = r;