Skip to content

Commit 0356407

Browse files
committed
Fix detection of a delay.
1 parent 44a6c14 commit 0356407

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

retry.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ int main (int argc, char **argv)
675675
add_jitter(j, &ts);
676676
}
677677

678-
if (ts.tv_sec && ts.tv_nsec) {
678+
if (ts.tv_sec || ts.tv_nsec) {
679679
fprintf(stderr,
680680
"%s: %s returned %d, backing off for %ld second%s and trying again...\n",
681681
name, message ? message : argv[optind], status,

0 commit comments

Comments
 (0)