[xen-tools] [PATCH] Argo's Host.pm: getRX
Ward Vandewege
ward at pong.be
Sat Nov 11 17:09:48 CET 2006
Hi Steve,
Here's a small patch for Argo's Host.pm that fixes the getRX function:
--- Host.pm 2006-11-11 10:43:58.000000000 -0500
+++ Host.pm 2006-11-11 10:44:14.000000000 -0500
@@ -596,7 +596,7 @@
{
if ( $line =~ /^vif$id/ )
{
- if ( $line =~ /(.*):([ \t]+)([0-9]+)/ )
+ if ( $line =~ /(.*):([ \t]*)([0-9]+)/ )
{
$count = $3;
}
The problem is that when the numbers get big in /proc/net/dev, the whitespace
before the first column is dropped, which means that the the RX values turn
into 0. This patch fixes that.
Thanks,
Ward.
--
Pong.be -( Economic advantage is not in and of itself a valid )-
Virtual hosting -( purpose or justification for copyright or patent laws. )-
http://pong.be -( )-
GnuPG public key: http://gpg.dtype.org
More information about the xen-tools-discuss
mailing list