mirror of
https://github.com/Cacti/cacti.git
synced 2026-11-22 04:33:17 +09:00
units of memory are order of 1000 and not 1024
This commit is contained in:
1 parent
496a5c7d7e
commit
e6dbfb7ecf
1 file changed
+3
-2
+3
-2
@@ -345,12 +345,13 @@ function utilities_view_tech($php_info = '') {
|
||||
if ($config['cacti_server_os'] == 'win32') {
|
||||
form_alternate_row();
|
||||
print "<td>$name</td>\n";
|
||||
print '<td>' . number_format_i18n($value/1024, 2) . " MB</td>\n";
|
||||
print '<td>' . number_format_i18n($value/1000, 2) . " MB</td>\n";
|
||||
form_end_row();
|
||||
}else{
|
||||
switch($name) {
|
||||
case 'SwapTotal':
|
||||
case 'SwapFree':
|
||||
case 'Cached':
|
||||
case 'MemTotal':
|
||||
case 'MemFree':
|
||||
case 'Buffers':
|
||||
@@ -358,7 +359,7 @@ function utilities_view_tech($php_info = '') {
|
||||
case 'Inactive':
|
||||
form_alternate_row();
|
||||
print "<td>$name</td>\n";
|
||||
print '<td>' . number_format_i18n($value/1024/1024, 2) . " MB</td>\n";
|
||||
print '<td>' . number_format_i18n($value/1000/1000, 2) . " MB</td>\n";
|
||||
form_end_row();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user