It is currently May 3rd, 2024, 12:58 pm

Possible Bug in beta, not sure, never used previous version

Report bugs with the Rainmeter application and suggest features.
User avatar
Scolex
Posts: 111
Joined: July 31st, 2010, 8:52 am

Possible Bug in beta, not sure, never used previous version

Post by Scolex »

I created a skin for a core specific multi-color cpu meter using the perfmon plugin and I couldn't get the colors to change like they should so I did some investigating and found that the returned value is not a processor usage % ranging from 0-100%.
This is a modified version of the CPU1 skin in HUD.vision no matter what I do though the returned values are crazy.
Captures of the reported values are below one @ 30% load and one @ 100% load according to Windows resource monitor.
Any insight as to what is going on?

Code: Select all

;===========================================
;  Rainmeter configuration file
;===========================================

[Rainmeter]
Author=Jiri Mahel
AppVersion=1.0
Update=1000


;Metadata added by RainBrowser
;http://rainmeter.net/cms/Rainmeter101-EditingSkins

[Metadata]
Name=
Config=
Description=
Instructions=
Version=
Tags=
License=
Variant=
Preview=

;End of added Metadata

[Variables]
fontColor.Text=255, 255, 255, 160
graph.line1=255, 255, 255, 75
graph.line2=255, 255, 255, 37

FontName=Tahoma
FontHeight=8
AntiAlias=1

;===========================================
;  CPU1 Display
;===========================================


[MeasureCPU1]
Measure=Plugin
Plugin=Plugins\PerfMon.dll
PerfMonObject="Processor"
PerfMonInstance=0
PerfMonCounter="% Processor Time"
PerfMonDifference=0
InvertMeasure=0

[msTint]
Measure=Calc
Formula=MeasureCPU1>95 ? -1 :(MeasureCPU1>50 ? -2 : -3)
Substitute="-1":"255,0,0,150","-2":"0,255,0,150","-3":"0,0,255,150"

[msVarSet]
Measure=Calc
Formula=MeasureCPU1<>(-1)
IfEqualValue=1
IfEqualAction=!RainmeterSetVariable Color [msTint]
DynamicVariables=1

[CPU1Graph1]
Meter=Line
MeasureName=MeasureCPU1
X=0
Y=4
H=43
W=180
LineCount=1
LineColor=[msTint]
DynamicVariables=1
AntiAlias=1

[msTint2]
Measure=Calc
Formula=MeasureCPU1>95 ? -1 :(MeasureCPU1>50 ? -2 : -3)
Substitute="-1":"255,0,0,100","-2":"0,255,0,100","-3":"0,0,255,100"

[msVarSet2]
Measure=Calc
Formula=MeasureCPU1<>(-1)
IfEqualValue=1
IfEqualAction=!RainmeterSetVariable Color [msTint2]
DynamicVariables=1

[CPU1Graph2]
Meter=HISTOGRAM
MeasureName=MeasureCPU1
X=r
Y=r
H=42
W=180
PrimaryColor=[msTint2]
DynamicVariables=1
AntiAlias=1

[l.str]
Meter=STRING
X=5
Y=43r
StringStyle=NORMAL
StringAlign=LEFT
FontColor=#fontColor.Text#
FontSize=#FontHeight#
FontFace=#FontName#
AntiAlias=1
Text="CPU 1"

[load]
Meter=STRING
MeasureName=MeasureCPU1
X=160
Y=r
StringAlign=RIGHT
FontColor=#fontColor.Text#
FontSize=#FontHeight#
FontFace=#FontName#
AntiAlias=1
30%.PNG
100%.PNG
You do not have the required permissions to view the files attached to this post.