[Swift-commit] r3163 - trunk/libexec/log-processing
noreply at svn.ci.uchicago.edu
noreply at svn.ci.uchicago.edu
Thu Oct 15 14:51:11 CDT 2009
Author: hategan
Date: 2009-10-15 14:51:11 -0500 (Thu, 15 Oct 2009)
New Revision: 3163
Modified:
trunk/libexec/log-processing/weights.sh
Log:
only plot weights if data available
Modified: trunk/libexec/log-processing/weights.sh
===================================================================
--- trunk/libexec/log-processing/weights.sh 2009-10-15 19:49:42 UTC (rev 3162)
+++ trunk/libexec/log-processing/weights.sh 2009-10-15 19:51:11 UTC (rev 3163)
@@ -1,8 +1,8 @@
#!/bin/bash
-grep 'WeightedHostScoreScheduler Old score:' $1 | iso-to-secs | normalise-event-start-time | sed 's/^\([^ ]*\) .* new score: \(.*\)$/\1 \2/' | sed 's/,//g' > weights.tmp
+grep 'WeightedHostScoreScheduler CONTACT_SELECTED' $1 | iso-to-secs | normalise-event-start-time | sed 's/^\([^ ]*\) .* score=\(.*\)$/\1 \2/' | sed 's/,//g' > weights.tmp
-gnuplot ${SWIFT_PLOT_HOME}/weights.plot
+if [ -s weights.tmp ]; then
+ gnuplot ${SWIFT_PLOT_HOME}/weights.plot
+fi
-
-
More information about the Swift-commit
mailing list