All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

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)
buf += SIZEOF_LONG;
// Insert the bandwidth
bandwidth = htonl(bandwidth + bandwidth/4);
bandwidth = htonl(bandwidth);
memcpy(buf, &bandwidth, SIZEOF_LONG);
buf += SIZEOF_LONG;
......@@ -1265,9 +1265,12 @@ int main(int argc, char *argv[]) {
// printf("Total: %d\n", total_size);
// printf("========== Quantum %lu ==========\n", quantum_no);
logWrite(MAIN_LOOP, NULL, "Quantum %lu", quantum_no);
update_stats();
logWrite(MAIN_LOOP, NULL, "PCAP Received: %u Dropped: %u",
received_stat(), dropped_stat());
if (is_live)
{
update_stats();
logWrite(MAIN_LOOP, NULL, "PCAP Received: %u Dropped: %u",
received_stat(), dropped_stat());
}
quantum_no++;
//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