projects
/
air-quality
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
054aef4
)
skip short reads
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 4 Feb 2020 18:30:02 +0000
(19:30 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 4 Feb 2020 18:30:02 +0000
(19:30 +0100)
mh-z19b.pl
patch
|
blob
|
history
diff --git
a/mh-z19b.pl
b/mh-z19b.pl
index
c925661
..
0c3fbd1
100755
(executable)
--- a/
mh-z19b.pl
+++ b/
mh-z19b.pl
@@
-29,7
+29,10
@@
while (1) {
die $! if ! defined($len);
if ( $len > 0 ) {
my @v = unpack('C*', $string);
- #warn "# $len ",dump($string), dump( @v ), $/;
+ if ( $#v < 8 ) {
+ warn "# $len ",dump($string), dump( @v ), $/;
+ next;
+ }
my $sum = 0;
foreach my $i ( 1 .. $#v - 1 ) {