Changeset 5934 for trunk/phpgwapi/inc/class.ping.inc.php
- Timestamp:
- 04/12/12 15:18:08 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpgwapi/inc/class.ping.inc.php
r2 r5934 72 72 $packet_tx = str_replace(' packets transmitted','',$values[0]); 73 73 $packet_rx = str_replace(' packets received','',$values[1]); 74 $packet_loss = ereg_replace('% packet loss','',$values[2]);74 $packet_loss = preg_replace('/% packet loss/','',$values[2]); 75 75 76 76 $this->packet_tx = (int)str_replace(' ','',$packet_tx);
Note: See TracChangeset
for help on using the changeset viewer.