]> git.nbdom.net Git - nb.git/commitdiff
opt/nb/bin/iwtop
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Mon, 13 Nov 2023 08:54:15 +0000 (09:54 +0100)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Mon, 13 Nov 2023 08:54:15 +0000 (09:54 +0100)
bin/iwtop

index 00dcd76007cb647637cc4577df8f82d7cf8a2e9f..25658abf1a1d0b083275b4e02699aeff4c47d64e 100755 (executable)
--- a/bin/iwtop
+++ b/bin/iwtop
@@ -18,6 +18,7 @@ while (<>) {
 
   /^([\w:_-]+)/ and $int = $1 and next;
   /^\s*Cell (\d+)/ and $cell = $1;
+  next unless $cell;
   my $k = "$int-$cell";
   $net{$k}{int} = $int;
   $net{$k}{cell} = $cell;