![]() |
2010-05-21
, 06:13
|
Posts: 726 |
Thanked: 345 times |
Joined on Apr 2010
@ Sweden
|
#2
|
The Following User Says Thank You to Joorin For This Useful Post: | ||
![]() |
2010-05-21
, 06:17
|
|
Posts: 3,159 |
Thanked: 2,023 times |
Joined on Feb 2008
@ Finland
|
#3
|
![]() |
2010-05-21
, 06:22
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#4
|
![]() |
2010-05-21
, 06:42
|
Posts: 38 |
Thanked: 2 times |
Joined on Apr 2010
@ Novosibirsk, Russia
|
#5
|
![]() |
2010-05-21
, 06:57
|
|
Posts: 3,159 |
Thanked: 2,023 times |
Joined on Feb 2008
@ Finland
|
#6
|
![]() |
2010-05-21
, 07:50
|
|
Posts: 670 |
Thanked: 359 times |
Joined on May 2007
|
#7
|
![]() |
2010-05-21
, 09:03
|
Posts: 726 |
Thanked: 345 times |
Joined on Apr 2010
@ Sweden
|
#8
|
I need this because my app in some time run function, which needs much free memory and I want prevent it uses if free RAM is not enought.
I want to know how many RAM on N900 is free before I start some operation in my Qt app. I thinked that I`ll can get this info from HAL, but in list of devices /org/freedesktop/Hal/devices/ I don`t found something about RAM.
EDIT:
So, I found some solution. I read from file /proc/meminfo lines with memory usage. Maybe does anyone know a more elegant solution?
Last edited by Grinchman; 2010-05-21 at 06:26. Reason: Temporary solved