1
0
mirror of https://github.com/bol-van/zapret.git synced 2025-04-01 12:56:29 +03:00

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
binaries
aarch64
arm
mips32r1-lsb
mips32r1-msb
mips64r2-msb
ppc
x86
x86_64
mdig

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -156,7 +156,7 @@ static void stat_print(int ct, int ct_ok)
if (glob.stats_every > 0) if (glob.stats_every > 0)
{ {
time_t tm = time(NULL)-glob.start_time; 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);
} }
} }