[Swift-commit] r2438 - log-processing/libexec

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Mon Jan 12 01:37:34 CST 2009


Author: benc
Date: 2009-01-12 01:37:32 -0600 (Mon, 12 Jan 2009)
New Revision: 2438

Modified:
   log-processing/libexec/compute-t-inf
Log:
when the last line of a log file does not contain a time stamp (generally because it is a continuation line of a multi-line log entry) then compute-t-inf was not finding the end time of the run. this commit will allow it to find the end time as long as it occurs within the last 500 lines. potentially the entire log file could be searched, but that would increase processing time.

Modified: log-processing/libexec/compute-t-inf
===================================================================
--- log-processing/libexec/compute-t-inf	2009-01-11 12:32:58 UTC (rev 2437)
+++ log-processing/libexec/compute-t-inf	2009-01-12 07:37:32 UTC (rev 2438)
@@ -4,5 +4,5 @@
 
 # for now, approximates by the last line of the swift log file
 
-tail -n 1 | iso-to-secs | cut -f 1 -d " "
+tail -n 500 | grep -E '^[0-9]' | tail -n 1 | iso-to-secs | cut -f 1 -d " "
 




More information about the Swift-commit mailing list