← Commit list

49d51598a

Denys Vlasenko
Denys Vlasenko
2015-10-24
SUCCESS Duration: 264s

Subject

zcip: do not query current time if we won't use the result

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

networking/zcip.c+4 -2
@@ -361,8 +361,10 @@ int zcip_main(int argc UNUSED_PARAM, char **argv)
// make the kernel filter out all packets except
// ones we'd care about.
}
- // Set deadline_us to the point in time when we timeout
- deadline_us = MONOTONIC_US() + timeout_ms * 1000;
+ if (timeout_ms >= 0) {
+ // Set deadline_us to the point in time when we timeout
+ deadline_us = MONOTONIC_US() + timeout_ms * 1000;
+ }
VDBG("...wait %d %s nsent=%u\n",
timeout_ms, argv_intf, nsent);