/[maps]/lib/NMEA.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /lib/NMEA.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 27 by dpavlin, Fri Dec 7 03:44:12 2007 UTC revision 29 by dpavlin, Fri Dec 7 04:05:07 2007 UTC
# Line 63  sub line { Line 63  sub line {
63                          return;                          return;
64                  }                  }
65    
66                  $stats->{ 'min_'.$_ } = $hash->{ $_ } < $stats->{ 'min_'.$_ } foreach ( qw/lat lon/ );                  foreach my $n ( qw/lat lon time speed/ ) {
67                  $stats->{ 'max_'.$_ } = $hash->{ $_ } > $stats->{ 'max_'.$_ } foreach ( qw/lat lon/ );                          $stats->{'min_'.$n} ||= $hash->{$n};
68                            $stats->{'max_'.$n} ||= $hash->{$n};
69                            $stats->{'min_'.$n} = $hash->{$n} if $hash->{$n} < $stats->{'min_'.$n};
70                            $stats->{'max_'.$n} = $hash->{$n} if $hash->{$n} > $stats->{'max_'.$n};
71                    }
72    
73                  $hash->{number} = $stats->{total}++;                  $hash->{number} = $stats->{total}++;
74    

Legend:
Removed from v.27  
changed lines
  Added in v.29

  ViewVC Help
Powered by ViewVC 1.1.26