Misc cleanup

This commit is contained in:
Cinder Biscuits
2019-06-08 17:58:54 -05:00
parent 50542975ab
commit 9e1fa3f882
37 changed files with 112 additions and 178 deletions

View File

@@ -80,7 +80,7 @@ namespace PacketDump
// Determine how long to run for
int start = Environment.TickCount;
int milliseconds = Int32.Parse(args[3]) * 1000;
bool forever = (milliseconds > 0) ? false : true;
bool forever = (milliseconds <= 0);
// Packet handling is done with asynchronous callbacks. Run a sleeping loop in the main
// thread until we run out of time or the program is closed