Changeset 842 for trunk/Modules/NetworkConfigLinux/Generators/Latency.php
- Timestamp:
- Dec 31, 2016, 12:57:08 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/NetworkConfigLinux/Generators/Latency.php
r824 r842 22 22 exec('fping -e -r '.$RetryLimit.' -t '.$Timeout.' -a '.implode(' ', $Hosts).' 2>/dev/null', $Output); 23 23 24 $this->Database->query('BEGIN'); 24 25 foreach($Output as $Index => $Line) { 25 26 $IP = substr($Line, 0, strPos($Line, ' ')); … … 27 28 $Value = substr($Line, 0, strpos($Line, ' ')); 28 29 //echo($IP.' '.$Value."\n"); 29 $this->Database->insert('NetworkInterfaceLatency', array('Interface' => $HostInterface[$IP], 30 $this->Database->insert('NetworkInterfaceLatency', array('Interface' => $HostInterface[$IP], 30 31 'Value' => $Value, 'Time' => TimeToMysqlDateTime($Time))); 31 32 } 33 $this->Database->query('COMMIT'); 32 34 } 33 35
Note:
See TracChangeset
for help on using the changeset viewer.