Commit fcdbd4ad authored by Jonathon Duerig's avatar Jonathon Duerig

Minor bugfix with replay

parent 12c77c64
...@@ -776,7 +776,7 @@ int send_bandwidth_to_monitor(int monitor, int index) ...@@ -776,7 +776,7 @@ int send_bandwidth_to_monitor(int monitor, int index)
buf += SIZEOF_LONG; buf += SIZEOF_LONG;
// Insert the bandwidth // Insert the bandwidth
bandwidth = htonl(bandwidth + bandwidth/4); bandwidth = htonl(bandwidth);
memcpy(buf, &bandwidth, SIZEOF_LONG); memcpy(buf, &bandwidth, SIZEOF_LONG);
buf += SIZEOF_LONG; buf += SIZEOF_LONG;
...@@ -1265,9 +1265,12 @@ int main(int argc, char *argv[]) { ...@@ -1265,9 +1265,12 @@ int main(int argc, char *argv[]) {
// printf("Total: %d\n", total_size); // printf("Total: %d\n", total_size);
// printf("========== Quantum %lu ==========\n", quantum_no); // printf("========== Quantum %lu ==========\n", quantum_no);
logWrite(MAIN_LOOP, NULL, "Quantum %lu", quantum_no); logWrite(MAIN_LOOP, NULL, "Quantum %lu", quantum_no);
update_stats(); if (is_live)
logWrite(MAIN_LOOP, NULL, "PCAP Received: %u Dropped: %u", {
received_stat(), dropped_stat()); update_stats();
logWrite(MAIN_LOOP, NULL, "PCAP Received: %u Dropped: %u",
received_stat(), dropped_stat());
}
quantum_no++; quantum_no++;
//while in a quanta //while in a quanta
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment