problem with displaying proper memory usage (SOLVED) Thread last updated on 2008-06-12 04:47:29

Posted by member 406508 on 2008-06-11 21:26:12

I'm not sure if this is the correct forum for this issue, I hope it is. I'm having problems displaying my current memory usage on all of my themes accept for one. This is the code in my themes config file: RAM [meminuse] / [memtotal]

Now I checked the theme where I'm actually getting an accurate memory reading, its called XPMC2 if it matters, and in the config file that controls the memory display it uses the exact same code. Any other theme I've tried that displays the memory usage is doing the exact same problem. It says I'm using 0 bytes/ 1.99 GB free, whereas the working theme accurately displays about 500 mb in use out of 4 gigs free. So I was wondering if anyone has any ideas as to what might be causing this issue. Ultimately displaying the memory usage is not the biggest deal in the world, but still I finally found a theme I like and if I could just fix this one little issue I'd be set. Thanks in advance for any insights you may have.



Posted by member 1 on 2008-06-11 21:34:46 link

Sounds like the version of (x)Label you are using doesn't use [meminuse]. Read the docs for your (x)Label module.

Posted by member 378340 on 2008-06-11 21:46:50 link

or use the same xLabel version as your working theme.

Posted by member 406508 on 2008-06-11 22:15:38 link

Alright I checked the version of xlabel my theme is using and looked in the readme and it says the syntax is [meminuse]. So then I looked to see what version the working theme was using and it was 4.1.5 so I changed the theme.rc of the version I'm using to 4.1.5 and it doesn't display any of it now, the top panel of my theme now reads exactly this:
"CPU [CPU] :: RAM [memInUse] :: C: Free [diskAvailable('c:', %)]% :: Uptime [uptime] :: IP Address [ip] :: Time [time('h:nn:ss')]"

Does 4.1.5 have some kind of dependency I need to load as well?

Posted by member 406508 on 2008-06-11 22:19:44 link

Here's the entire passage from the theme.rc of the theme that isn't working:

*Label TimeLabel

TimeLabelTransparencyMode fake
TimeLabelTransparent
TimeLabelHeight 15
TimeLabelWidth 780
TimeLabelJustify "right"
TimeLabelFont "verdana"
TimeLabelFontBold
TimeLabelFontColor ffffff
TimeLabelFontHeight 15
TimeLabelX -780
TimeLabelY 2
TimeLabelText "CPU [CPU] :: RAM [memInUse] :: C: Free [diskAvailable('c:', %)]% :: Uptime [uptime] :: IP Address [ip] :: Time [time('h:nn:ss')]"
TimeLabelOnRightClick !popup
TimeLabelOnLeftDoubleClick control.exe timedate.cpl

Posted by member 1 on 2008-06-11 22:24:07 link

No but the configuration might have changed/did change. For the same reason [meminuse] didn't work. You must read the docs for the xLabel 4.1.5 and properly configure your theme.

Posted by member 212670 on 2008-06-12 04:47:29 link

xLabel 4.x requires xStatsClass to be loaded.

*NetLoadModule xstatsclass-1.1