diff --git a/pandora_console/include/functions_modules.php b/pandora_console/include/functions_modules.php index 9466b15aa1..9081ec5519 100755 --- a/pandora_console/include/functions_modules.php +++ b/pandora_console/include/functions_modules.php @@ -2307,7 +2307,10 @@ function modules_get_agentmodule_data_for_humans($module) switch ($module['id_tipo_modulo']) { case 15: $value = db_get_value('snmp_oid', 'tagente_modulo', 'id_agente_modulo', $module['id_agente_modulo']); - if ($value == '.1.3.6.1.2.1.1.3.0' || $value == '.1.3.6.1.2.1.25.1.1.0') { + if (($value == '.1.3.6.1.2.1.1.3.0' + || $value == '.1.3.6.1.2.1.25.1.1.0') + && modules_get_unit_macro($module['data'], $module['unit']) === true + ) { if ($module['post_process'] > 0) { $salida = human_milliseconds_to_string(($module['datos'] / $module['post_process'])); } else { @@ -2328,7 +2331,10 @@ function modules_get_agentmodule_data_for_humans($module) switch ($module['id_tipo_modulo']) { case 15: $value = db_get_value('snmp_oid', 'tagente_modulo', 'id_agente_modulo', $module['id_agente_modulo']); - if ($value == '.1.3.6.1.2.1.1.3.0' || $value == '.1.3.6.1.2.1.25.1.1.0') { + if (($value == '.1.3.6.1.2.1.1.3.0' + || $value == '.1.3.6.1.2.1.25.1.1.0') + && modules_get_unit_macro($module['data'], $module['unit']) === true + ) { if ($module['post_process'] > 0) { $salida = human_milliseconds_to_string(($module['datos'] / $module['post_process'])); } else {