diff options
author | etienne | 2004-07-30 09:48:24 +0000 |
---|---|---|
committer | etienne | 2004-07-30 09:48:24 +0000 |
commit | 44b01ef1c159a691aaf7bb61d4d7ade312ebe580 (patch) | |
tree | 16e0f31ebc72d28f52998a07514fdd6be3434da2 | |
parent | caaa45e630a9b3a28f822d8a2a21df0b7124c9d1 (diff) | |
download | ivymon-44b01ef1c159a691aaf7bb61d4d7ade312ebe580.zip ivymon-44b01ef1c159a691aaf7bb61d4d7ade312ebe580.tar.gz ivymon-44b01ef1c159a691aaf7bb61d4d7ade312ebe580.tar.bz2 ivymon-44b01ef1c159a691aaf7bb61d4d7ade312ebe580.tar.xz |
Accelere le chargement de fichiers non standard.
-rwxr-xr-x | src/ivymon | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1966,6 +1966,7 @@ sub stepsnumber { my $step = 0; my $timefound; + my $lc; # select loading mode # if the 1rst message contains a time field, a dialog window # will be displayed in order to select replay mode or simple @@ -1980,8 +1981,10 @@ sub stepsnumber { } my ($sender, $message) = split(/\s+/, $_, 2); $timefound = 1 if $message =~ /^(\d[\d\.]+\d)\s+.*/; - last; + last if $step; + $lc++; } + $step = int($lc/10) unless $step; seek(IN, 0, 0); return ($step, $timefound); @@ -2182,6 +2185,7 @@ sub loadfileForReplay { chomp; next if /^applications=/ or /^messages_number=/ or /^\s*$/ or /^(marker\d+)$/; ($sender, $time, $message) = split(/\s+/, $_, 3); + $time = int($time); if (defined $replay_max_time) { $replay_max_time = $time if $time > $replay_max_time; } else { |