X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=tfc_skein.c;h=8102f70af122cff0cbeb7055150ea83267238494;hb=1b12ee27233bd358a40406b5a7799230647c5ab1;hp=3f656696a01a9029bf2f18419feda61b058ab5d6;hpb=96e6e88fd94af95e15d143e4a86d5a9e858d340d;p=tfcrypt.git diff --git a/tfc_skein.c b/tfc_skein.c index 3f65669..8102f70 100644 --- a/tfc_skein.c +++ b/tfc_skein.c @@ -222,7 +222,7 @@ _dothat: continue; } - if (status_timer) setup_next_alarm(status_timer); + if (status_timer) setup_next_alarm(status_timer > 1000000 ? 1000000 : status_timer); if (skeinfd(hash, bits, mackey_opt ? mackey : NULL, fd, iseek, maxlen) != YES) { xerror(YES, NO, YES, "%s", fname); exitcode = 1; @@ -274,7 +274,7 @@ _dothat: continue; } -_dohash: if (status_timer) setup_next_alarm(status_timer); +_dohash: if (status_timer) setup_next_alarm(status_timer > 1000000 ? 1000000 : status_timer); if (skeinfd(hash, bits, mackey_opt ? mackey : NULL, fd, iseek, maxlen) != YES) { xerror(YES, NO, YES, "%s", fargv[x]); exitcode = 1;