Hi. I cannot figure out what I am doing wrong, as usual
I took basic calculation from Rainmeter documentation:
It, of course works as it should. Now, I added this to it:
and to show the result I did:
The issue is that Formula=[MeasureUsedDiskSpace] always shows me the incorrect result.
This gives me
C:\ (): [Total: 930.1GB] [Free: 849.9 GB] [Used: 80.2GB]
So I would expect Formula=[MeasureUsedDiskSpace] and then Text=[usedSlashes] to give me 80.2 or so in kb's but I end up with 998689992704 and if I do Formula=[MeasureTotalDiskSpace] I end up with a 0.
Basically I am trying to get 930.1, 849.9 and 80.2 into a calculation measure to do some calculations and display the result in a meter.
I took basic calculation from Rainmeter documentation:
Code:
[MeasureDiskLabel]Measure=FreeDiskSpaceDrive=C:Label=1UpdateDivider=5[MeasureTotalDiskSpace]Measure=FreeDiskSpaceDrive=C:Total=1UpdateDivider=5[MeasureFreeDiskSpace]Measure=FreeDiskSpaceDrive=C:UpdateDivider=5[MeasureUsedDiskSpace]Measure=FreeDiskSpaceDrive=C:InvertMeasure=1UpdateDivider=5; -----Meters-----[MeterDriveInfo]Meter=StringMeasureName=MeasureDiskLabelMeasureName2=MeasureTotalDiskSpaceMeasureName3=MeasureFreeDiskSpaceMeasureName4=MeasureUsedDiskSpaceX=0Y=0FontSize=10FontColor=255,255,255,255SolidColor=0,0,0,255AntiAlias=1AutoScale=1Text="C:\ (%1): [Total: %2B] [Free: %3B] [Used: %4B]"
Code:
[usedSlashes]Measure=CalcFormula=[MeasureUsedDiskSpace]*25
Code:
[Text.usedSlashes]Meter=StringX=25Y=50Text=[usedSlashes]FontFace=LatoFontSize=15FontColor=255, 255, 255, 255StringAlign=LeftAntiAlias=1DynamicVariables=1
This
Code:
Text="C:\ (%1): [Total: %2B] [Free: %3B] [Used: %4B]"
C:\ (): [Total: 930.1GB] [Free: 849.9 GB] [Used: 80.2GB]
So I would expect Formula=[MeasureUsedDiskSpace] and then Text=[usedSlashes] to give me 80.2 or so in kb's but I end up with 998689992704 and if I do Formula=[MeasureTotalDiskSpace] I end up with a 0.
Basically I am trying to get 930.1, 849.9 and 80.2 into a calculation measure to do some calculations and display the result in a meter.
Statistics: Posted by UrdaNox — Today, 4:22 am — Replies 5 — Views 51