It is currently April 24th, 2024, 9:59 pm

Changing from PerfMon to UsageMonitor skin :(

Get help with creating, editing & fixing problems with skins
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Changing from PerfMon to UsageMonitor skin :(

Post by jsmorley »

scratch67 wrote: April 26th, 2021, 10:18 am Hello,

Out of curiosity I tried adding another color image for Writes. It didn't work. Is it true that one can use only two images for both reads & writes?
I'm not sure I follow the problem you are having...
User avatar
CodeCode
Posts: 1366
Joined: September 7th, 2020, 2:24 pm
Location: QLD, Australia

Re: Changing from PerfMon to UsageMonitor skin :(

Post by CodeCode »

You can use any combination of images - either pseudo-randomly, or selectively say, with the mouse wheel.

Code: Select all

MouseScrollUpAction=[!WriteKeyValue Variables MyLogoImage "((#MyLogoImage#+1)%10)" "#@#RoundVariables.inc"][!RefreshGroup BigTunes]
MouseScrollDownAction=[!WriteKeyValue Variables MyLogoImage "((#MyLogoImage#=0)?9:(#MyLogoImage#-1))" "#@#RoundVariables.inc"][!RefreshGroup BigTunes]
The above code would cycle through 10 images, for example. (#MyLogoImage#+1)%10). 0 thru 9
ƈǟռ'ȶ ʄɨӼ ɨȶ ɨʄ ɨȶ ǟɨռ'ȶ ɮʀօӄɛ - ʊռʟɛֆֆ ɨȶ ɨֆ ɨռ ƈօɖɛ.
jn_meter
Posts: 136
Joined: December 27th, 2016, 12:04 pm

Re: Changing from PerfMon to UsageMonitor skin :(

Post by jn_meter »

I've a couple of questions, if I may.

The questions are about code of this sort:

Code: Select all

Measure=Plugin
Plugin=UsageMonitor
Category=LogicalDisk
Counter=Disk Writes/sec
Name=C:
1) Is the value returned in megabytes? (If so, that's fine.)
2) How does one measure all activity - reads and writes - for a single disk, please?

Thanks.
Last edited by SilverAzide on May 2nd, 2022, 9:30 pm, edited 1 time in total.
Reason: Please use code tags when posting code.
User avatar
SilverAzide
Rainmeter Sage
Posts: 2604
Joined: March 23rd, 2015, 5:26 pm

Re: Changing from PerfMon to UsageMonitor skin :(

Post by SilverAzide »

jn_meter wrote: May 2nd, 2022, 6:36 pm I've a couple of questions, if I may.

The questions are about code of this sort:

Code: Select all

Measure=Plugin
Plugin=UsageMonitor
Category=LogicalDisk
Counter=Disk Writes/sec
Name=C:
1) Is the value returned in megabytes? (If so, that's fine.)
2) How does one measure all activity - reads and writes - for a single disk, please?

Thanks.
No, this is not the correct performance counter. This is the rate of write operations per second, not the amount of data (in bytes) per second. You want this:

Code: Select all

Measure=Plugin
Plugin=UsageMonitor
Category=LogicalDisk
Counter="Disk Write Bytes/sec"
Name="C:"
To answer your second question, the counter that combines read+write is "Disk Bytes/sec". Alternatively, if you already have a "Disk Read Bytes/sec" measure, you can just use a Calc measure to add the two values together instead of having another UsageMonitor measure.
Gadgets Wiki GitHub More Gadgets...
jn_meter
Posts: 136
Joined: December 27th, 2016, 12:04 pm

Re: Changing from PerfMon to UsageMonitor skin :(

Post by jn_meter »

So, to get a value for all activity - reads and writes - upon some single disk, the Counter is Disk Bytes/sec and, as the name of that counter suggests, the resulting data is in bytes. Right. Thanks. My skin now does what I wish.