actually ignore the header
This commit is contained in:
		
							
								
								
									
										6
									
								
								csv.pl
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										6
									
								
								csv.pl
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							@@ -1,5 +1,5 @@
 | 
				
			|||||||
#!/usr/bin/env perl -w
 | 
					#!/usr/bin/perl -w
 | 
				
			||||||
#
 | 
					
 | 
				
			||||||
$|=1 if $ENV{DEBUG};
 | 
					$|=1 if $ENV{DEBUG};
 | 
				
			||||||
use strict;
 | 
					use strict;
 | 
				
			||||||
use diagnostics;
 | 
					use diagnostics;
 | 
				
			||||||
@@ -38,7 +38,7 @@ foreach my $station (@stations) {
 | 
				
			|||||||
	my $last = getlatest($station);
 | 
						my $last = getlatest($station);
 | 
				
			||||||
	print "[$station] Last record was $last\n" if $ENV{R_DEBUG};
 | 
						print "[$station] Last record was $last\n" if $ENV{R_DEBUG};
 | 
				
			||||||
	foreach my $line (sort split(/^/m, $content)) {
 | 
						foreach my $line (sort split(/^/m, $content)) {
 | 
				
			||||||
		next if $line =~ /Timestamp (UTC)/;
 | 
							next if $line =~ /Timestamp/;
 | 
				
			||||||
		chomp($line);
 | 
							chomp($line);
 | 
				
			||||||
		my ($ts, $level) = split(/,/, $line);
 | 
							my ($ts, $level) = split(/,/, $line);
 | 
				
			||||||
		if($ts le $last) {
 | 
							if($ts le $last) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user