--- trunk/dwm-status.pl 2007/05/27 09:14:14 35 +++ trunk/dwm-status.pl 2007/05/27 15:30:12 36 @@ -109,11 +109,11 @@ foreach ( split(/\n/, $net) ) { s/^\s+//; my @n = split(/\s+/, $_, 17); - next unless ( $n[0] =~ m!(eth\d|ath\d):! ); + next unless ( $n[0] =~ s!(eth\d|ath\d):!! ); warn dump( @n ) if ($debug); - $rx += $n[1]; - $tx += $n[9]; + $rx += $n[0]; + $tx += $n[8]; } warn "rx: $rx tx: $tx\n" if ($debug);