Commit 7e5d7638 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

IRIs.pm: Ignore "1" messages (no information content, apparently

parent fd0dba75
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -224,7 +224,9 @@ sub get_realtime {
			my $msgid = $e_m->getAttribute('id');
			my $ts    = $e_m->getAttribute('ts');

			if ($value) {
			# 0 and 1 (with key "f") are related to canceled trains and
			# do not appear to hold information
			if (defined $value and $value > 1) {
				$messages{$msgid} = [ $ts, $type, $value ];
			}
		}