From caaa45e630a9b3a28f822d8a2a21df0b7124c9d1 Mon Sep 17 00:00:00 2001 From: etienne Date: Thu, 29 Jul 2004 15:17:22 +0000 Subject: Accept time expressed in fraction of second --- src/ivymon | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/ivymon b/src/ivymon index 003f76d..47f1d54 100755 --- a/src/ivymon +++ b/src/ivymon @@ -1978,8 +1978,8 @@ sub stepsnumber { $step = int($1/10); next; } - my ($sender, $message) = split(/ /, $_, 2); - $timefound = 1 if $message =~ /^(\d+)\s+.*/; + my ($sender, $message) = split(/\s+/, $_, 2); + $timefound = 1 if $message =~ /^(\d[\d\.]+\d)\s+.*/; last; } seek(IN, 0, 0); @@ -2181,7 +2181,7 @@ sub loadfileForReplay { while() { chomp; next if /^applications=/ or /^messages_number=/ or /^\s*$/ or /^(marker\d+)$/; - ($sender, $time, $message) = split(/ /, $_, 3); + ($sender, $time, $message) = split(/\s+/, $_, 3); if (defined $replay_max_time) { $replay_max_time = $time if $time > $replay_max_time; } else { -- cgit v1.1