Before I beat my head against a wall trying to do something not supported, I assume when you use a !ResetStats in a skin, it resets saved stats globally across all skins? If so, is there any way to only reset stats for a specific measure?
Case in point, I want a Network skin that shows a Total cumulative value from its first use and another value that shows cumulative network stats since a user specified action, e.g. clicking on a 'Refresh' button.
This would allow me to track, for example, total network stats monthly and total for a longer time, both at the same time.
Thanks for any information or suggestions.
It is currently May 5th, 2024, 7:46 am
ResetStats question
-
- Posts: 4
- Joined: July 29th, 2012, 4:30 am
-
- Developer
- Posts: 1721
- Joined: July 25th, 2009, 4:47 am
Re: ResetStats question
That's correct. Your global network statistics are stored in a file called Rainmeter.stats in your application data folder, and these statistics are used by all skins.dragon57 wrote:Before I beat my head against a wall trying to do something not supported, I assume when you use a !ResetStats in a skin, it resets saved stats globally across all skins?
Here would be a simple way to do that, using "NetIn" as an example:dragon57 wrote:If so, is there any way to only reset stats for a specific measure?
Case in point, I want a Network skin that shows a Total cumulative value from its first use and another value that shows cumulative network stats since a user specified action, e.g. clicking on a 'Refresh' button.
This would allow me to track, for example, total network stats monthly and total for a longer time, both at the same time.
Code: Select all
[Variables]
RefreshValue=0
[MeasureNetInTotal]
Measure=NetIn
Cumulative=1
[MeasureNetInSinceRefresh]
Measure=Calc
Formula=MeasureNetInTotal - #RefreshValue#
[RefreshButton]
Meter=...
DynamicVariables=1
LeftMouseUpAction=[!WriteKeyValue Variables RefreshValue "[MeasureNetInTotal:]"][!Refresh]
-
- Posts: 4
- Joined: July 29th, 2012, 4:30 am
Re: ResetStats question
Hey, that makes sense! Many, many thanks.