r-smith / vmPing

Visual Multi Ping. Color-coded ping utility for monitoring multiple hosts.
MIT License
431 stars 69 forks source link

Feature Request: Autoclose option #94

Open Mightyflea64 opened 1 year ago

Mightyflea64 commented 1 year ago

Please add an option that terminates the program automatically after a given number of seconds/minutes. This is to prevent flooding the network with pings when a 'dumb' user forgets to close the application manually.

Mightyflea64 commented 1 year ago

I'm not a programmer, but found a quick and dirty solution.

Open the file Probe-Icmp.cs and replace the lines: // Send ping. Statistics.Sent++;

With the following lines:
// Send ping. if (Statistics.Sent == 150) { StopProbe(ProbeStatus.Stop); Statistics.Sent--; }
Statistics.Sent++;

The program will stop the Ping process after 150 pings (with default settings it will be 5 minutes). The value is hard coded. It would be nice if this could be a configurable general option.