Permalink
Browse files

- fix #1934 (avg and max swapped on windows systems)

git-svn-id: http://svn.php.net/repository/pear/packages/Net_Ping/trunk@163902 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 0aec46c commit cebdb280d5a44146e99adfb3db4a9d76217dc3de Jan Lehnardt committed Jul 21, 2004
Showing with 4 additions and 4 deletions.
  1. +4 −4 Ping.php
View
@@ -36,8 +36,8 @@
define('NET_PING_CANT_LOCATE_PING_BINARY', 3);
define('NET_PING_RESULT_UNSUPPORTED_BACKEND', 4);
-/**************************TODO*******************************************/
-/*
+
+/* TODO
*
* - add Net_Ping_Result parser for:
* + IRIX64
@@ -901,8 +901,8 @@ function _parseResultwindows()
$round_trip = explode(',', str_replace('=', ',', $this->_raw_data[$raw_data_len - 1]));
$this->_round_trip['min'] = (int)substr(trim($round_trip[1]), 0, -2);
- $this->_round_trip['avg'] = (int)substr(trim($round_trip[3]), 0, -2);
- $this->_round_trip['max'] = (int)substr(trim($round_trip[5]), 0, -2);
+ $this->_round_trip['max'] = (int)substr(trim($round_trip[3]), 0, -2);
+ $this->_round_trip['avg'] = (int)substr(trim($round_trip[5]), 0, -2);
} /* function _parseResultwindows() */
/**

0 comments on commit cebdb28

Please sign in to comment.