Пример #1
0
 protected function dataFilter($name, $value)
 {
     switch ($name) {
         case 'squid_mem_conf':
             $value = MiaNagiosPluginFilters::dataFilterPrecision($name, MiaNagiosPluginFilters::dataFilterUnitToKilo($name, $value), 1);
             break;
         case 'squid_mem_val':
             $value = MiaNagiosPluginFilters::dataFilterPrecision($name, MiaNagiosPluginFilters::dataFilterUnitToMega($name, $value), 1);
             break;
         default:
     }
     return $value;
 }
Пример #2
0
 protected function dataFilter($name, $value)
 {
     return MiaNagiosPluginFilters::dataFilterPrecision($name, $value, 1);
 }
 protected function DataFilter($name, $value)
 {
     $value = MiaNagiosPluginFilters::dataFilterPrecision($name, $value, 1);
     return $value;
 }
 protected function dataFilter($name, $value)
 {
     // * 8 car octets
     return MiaNagiosPluginFilters::dataFilterPrecision($name, MiaNagiosPluginFilters::dataFilterUnitToMega($name, $value) * 8, 1);
 }