We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 04e15b1 + 28feeb2 commit c648ea8Copy full SHA for c648ea8
core/modules/dump.cc
@@ -48,7 +48,9 @@ CommandResponse Dump::Init(const bess::pb::DumpArg &arg) {
48
// cannot get a context-based current nanoseconds
49
min_interval_ns_ = DEFAULT_INTERVAL_NS;
50
next_ns_ = tsc_to_ns(rdtsc());
51
- return CommandSetInterval(arg);
+ if (arg.interval())
52
+ return CommandSetInterval(arg);
53
+ return CommandSuccess();
54
}
55
56
void Dump::ProcessBatch(Context *ctx, bess::PacketBatch *batch) {
0 commit comments