Changeset 13442

Show
Ignore:
Timestamp:
02/14/12 15:28:55 (1 year ago)
Author:
p_lindheimer
Message:

fixes #5292 correct alt calc for app memory, thanks coolname

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.10/dashboard/page.index.php

    r12851 r13442  
    206206  $out .= "<h4>"._("Memory")."</h4>"; 
    207207  $memory = $sysinfo->memory(); 
    208   $app_memory = isset($memory["ram"]["app"]) ? $memory["ram"]["app"] : $memory["ram"]["total"] - $memory["ram"]["t_free"]; 
     208  $app_memory = isset($memory["ram"]["app"]) ?  
     209    $memory["ram"]["app"] :  
     210    $memory["ram"]["total"] - $memory["ram"]["t_free"] - $memory['ram']['cached'] - $memory['ram']['buffers']; 
     211 
    209212  $out .= draw_graph(_("App Memory"), "MB", number_format($app_memory/1024,2), $memory["ram"]["total"]/1024); 
    210213  $out .= draw_graph(_("Swap"), "MB", number_format(($memory["swap"]["total"]-$memory["swap"]["free"])/1024,2), $memory["swap"]["total"]/1024);