ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent-FastPing/bin/fastping
(Generate patch)

Comparing AnyEvent-FastPing/bin/fastping (file contents):
Revision 1.1 by root, Sun Apr 27 15:43:51 2008 UTC vs.
Revision 1.2 by root, Wed Apr 7 14:13:16 2010 UTC

82 } 82 }
83 83
84 push @ranges, [$lo, $hi, $kbps && $pktsz / ($kbps * 1000)]; 84 push @ranges, [$lo, $hi, $kbps && $pktsz / ($kbps * 1000)];
85} 85}
86 86
87AnyEvent::FastPing::register_cb { 87AnyEvent::FastPing::register_cb sub {
88 for (@{$_[0]}) { 88 for (@{$_[0]}) {
89 printf "%s %d %g\n", 89 printf "%s %d %g\n",
90 (4 == length $_->[0] ? inet_ntoa $_->[0] : Socket6::inet_ntop (&AF_INET6, $_->[0])), 90 (4 == length $_->[0] ? inet_ntoa $_->[0] : Socket6::inet_ntop (&AF_INET6, $_->[0])),
91 $_->[2], 91 $_->[2],
92 $_->[1]; 92 $_->[1];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines