It is currently May 9th, 2024, 6:49 am

[SOLVED] Infinity Somewhere

Get help with creating, editing & fixing problems with skins
User avatar
Seahorse
Posts: 1175
Joined: June 9th, 2010, 5:56 pm
Location: Locks heath, UK

[SOLVED] Infinity Somewhere

Post by Seahorse »

These all do the right sum, and give the right result, with or without trailing figures and all give an Infinity error in the Log. Is there another way to get a numeric % of RAM usage? Maths is not my specialised subject, the skin works, but I'd like to remove the error if at all possible. Any suggestions on how to avoid this?

Code: Select all

[ReductionCalc]
Measure=Calc
Formula=Trunc(MeasureRAM/MeasurePhysMemTotal*100)

Code: Select all

[ReductionCalc]
Measure=Calc
Formula=(MeasureRAM/MeasurePhysMemTotal*100)

Code: Select all

[ReductionCalc]
Measure=Calc
Formula=((MeasureRAM/MeasurePhysMemTotal)*100)
Last edited by Seahorse on December 28th, 2011, 5:44 pm, edited 1 time in total.
"Regrettably your planet is one of those scheduled for demolition"
Mike

My Skins at DeviantArt

User avatar
Arne Anka
Posts: 100
Joined: April 18th, 2009, 11:31 am
Location: Sweden

Re: Infinity Somewhere

Post by Arne Anka »

Seahorse wrote:These all do the right sum, and give the right result, with or without trailing figures and all give an Infinity error in the Log. Is there another way to get a numeric % of RAM usage? Maths is not my specialised subject, the skin works, but I'd like to remove the error if at all possible. Any suggestions on how to avoid this?
Did you try this way?

Code: Select all

[MeasurePhysMemFree]
Measure=PhysicalMemory
InvertMeasure=1
UpdateDivider=2

[Meter_PhysMemFree_Txt]
Meter=STRING
MeasureName=MeasurePhysMemFree
NumOfDecimals=0
Text="%1%"
Percentual=1
It should work too... :great:

But that depends on what you want to do with it, of course. :rosegift:
Livet är bara en period man ska överleva.
Som filosoferna säger: man föds, man lever och man dör ensam...
User avatar
Seahorse
Posts: 1175
Joined: June 9th, 2010, 5:56 pm
Location: Locks heath, UK

Re: Infinity Somewhere

Post by Seahorse »

Solved, misnamed a variable... :o
"Regrettably your planet is one of those scheduled for demolition"
Mike

My Skins at DeviantArt