#4 Memory usage

closed-accepted
nobody
None
5
2009-10-15
2009-08-18
amd-65
No

The displayed memory usage is in kByte and not in Byte.

Index: mem_status.cgi

--- mem_status.cgi (Revision 39)
+++ mem_status.cgi (Arbeitskopie)
@@ -58,16 +58,15 @@
<DIV id=c_pfad>Status / System utilization</DIV>
<DIV id=c_titel>Memory</DIV>
<table border="0" cellpadding="1" cellspacing="2">
-<tr><td width="10"></td><td width="100">Size:</td><td>$mem_total Byte</td></tr>
-<tr><td width="10"></td><td width="100">Used:</td><td>$mem_used
-Byte</td><td width="20"></td><td>
+<tr><td width="10"></td><td width="100">Size:</td><td>$mem_total kByte</td></tr>
+<tr><td width="10"></td><td width="100">Used:</td><td>$mem_used kByte</td><td width="20"></td><td>
EOF_HTML
HBar 200 20 $mem_per
cat << EOF_HTML
</td></tr>
-<tr><td width="10"></td><td width="100">Free:</td><td>$mem_free Byte</td></tr>
-<tr><td width="10"></td><td width="100">Shared:</td><td>$mem_shared Byte</td></tr>
-<tr><td width="10"></td><td width="100">Buffers:</td><td>$mem_buffers Byte</td></tr>
+<tr><td width="10"></td><td width="100">Free:</td><td>$mem_free kByte</td></tr>
+<tr><td width="10"></td><td width="100">Shared:</td><td>$mem_shared kByte</td></tr>
+<tr><td width="10"></td><td width="100">Buffers:</td><td>$mem_buffers kByte</td></tr>
</table>
<div id=c_leer></div>
<DIV id=c_titel>NVRAM</DIV>
Index: index.cgi
===================================================================
--- index.cgi (Revision 39)
+++ index.cgi (Arbeitskopie)
@@ -291,11 +291,11 @@
<DIV id=c_titel>System status</DIV>
<div id=c_std>
<table border="0" cellpadding="4" cellspacing="0">
- <tr><td width="100">Memory total:</td><td>$mem_total</td></tr></table>
+ <tr><td width="100">Memory total:</td><td>${mem_total}k</td></tr></table>
</div>
<div id=c_std>
<table border="0" cellpadding="4" cellspacing="0">
- <tr><td width="100">Memory used:</td><td width="50">$mem_used</td>
+ <tr><td width="100">Memory used:</td><td width="50">${mem_used}k</td>
<td>
EOF_HTML
HBar 100 18 $mem_per

Discussion

    • status: open --> closed-accepted
     
  • Danke fuer die Hilfe