Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 498

Disk size calculations

$
0
0
Hi. I cannot figure out what I am doing wrong, as usual O.O

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]"
It, of course works as it should. Now, I added this to it:

Code:

[usedSlashes]Measure=CalcFormula=[MeasureUsedDiskSpace]*25
and to show the result I did:

Code:

[Text.usedSlashes]Meter=StringX=25Y=50Text=[usedSlashes]FontFace=LatoFontSize=15FontColor=255, 255, 255, 255StringAlign=LeftAntiAlias=1DynamicVariables=1
The issue is that Formula=[MeasureUsedDiskSpace] always shows me the incorrect result.

This

Code:

 Text="C:\ (%1): [Total: %2B] [Free: %3B] [Used: %4B]"
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.

Statistics: Posted by UrdaNox — Today, 4:22 am — Replies 5 — Views 51



Viewing all articles
Browse latest Browse all 498

Trending Articles