raiguard / ModernGadgets

Sleek, minimalist, information-dense gadgets for the modern desktop. Inspired by the AddGadgets.com system monitoring gadgets. Built on the Rainmeter platform.
MIT License
300 stars 32 forks source link

Change ping interval #208

Closed MarHelmer closed 4 years ago

MarHelmer commented 4 years ago

I've gone digging but I can't find an obvious way to change the ping interval on the Network Meter. Can someone please point me to the appropriate setting? Thanks.

SilverAzide commented 4 years ago

Edit the Network Meter skin and find the section [MeasurePing]. Add the line UpdateRate=<seconds>. The default rate is 32, which I think is 32 seconds? Or is that 32 milliseconds? Either way, something like this:

[MeasurePing]
Measure=Plugin
Plugin=PingPlugin
DestAddress=#pingUrl#
UpdateRate=100
FinishAction=[!UpdateMeter PingString][!Redraw]
MarHelmer commented 4 years ago

Thanks man. I figured it was buried in the plugin settings or something since I didn't see it configured in the main settings file. I added the line and it works perfectly. Also, it's measured in seconds, so UpdateRate=1 refreshes the ping every second.

MarHelmer commented 4 years ago

Would it be possible to add this as an option to the Network Meter settings skin?

raiguard commented 4 years ago

Sure, I can add it in.

raiguard commented 4 years ago

Done for v1.7.0.