mdig: fix stats display on 32-bit systems with 64-bit time_t

This commit is contained in:
bol-van
2024-09-14 17:49:08 +03:00
parent f1c091f9e4
commit d014ffe0ba
9 changed files with 1 additions and 1 deletions

View File

@@ -156,7 +156,7 @@ static void stat_print(int ct, int ct_ok)
if (glob.stats_every > 0)
{
time_t tm = time(NULL)-glob.start_time;
interlocked_fprintf(stderr, "mdig stats : %02u:%02u:%02u : domains=%d success=%d error=%d\n", tm/3600, (tm/60)%60, tm%60, ct, ct_ok, ct - ct_ok);
interlocked_fprintf(stderr, "mdig stats : %02u:%02u:%02u : domains=%d success=%d error=%d\n", (unsigned int)(tm/3600), (unsigned int)((tm/60)%60), (unsigned int)(tm%60), ct, ct_ok, ct - ct_ok);
}
}