summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoretienne2004-07-29 15:17:22 +0000
committeretienne2004-07-29 15:17:22 +0000
commitcaaa45e630a9b3a28f822d8a2a21df0b7124c9d1 (patch)
tree5d0f1a46583145909292fbe3b748d628a111ef5c /src
parentce0e23bf5d77803ad70dd92ea7e466d2d7a79773 (diff)
downloadivymon-caaa45e630a9b3a28f822d8a2a21df0b7124c9d1.zip
ivymon-caaa45e630a9b3a28f822d8a2a21df0b7124c9d1.tar.gz
ivymon-caaa45e630a9b3a28f822d8a2a21df0b7124c9d1.tar.bz2
ivymon-caaa45e630a9b3a28f822d8a2a21df0b7124c9d1.tar.xz
Accept time expressed in fraction of second
Diffstat (limited to 'src')
-rwxr-xr-xsrc/ivymon6
1 files changed, 3 insertions, 3 deletions
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(<IN>) {
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 {