[Assorted-commits] SF.net SVN: assorted: [642] hash-join/trunk/tools/LogProc.scala
Brought to you by:
yangzhang
From: <yan...@us...> - 2008-03-24 03:37:20
|
Revision: 642 http://assorted.svn.sourceforge.net/assorted/?rev=642&view=rev Author: yangzhang Date: 2008-03-23 20:37:25 -0700 (Sun, 23 Mar 2008) Log Message: ----------- fixed one-leftover-header bug Modified Paths: -------------- hash-join/trunk/tools/LogProc.scala Modified: hash-join/trunk/tools/LogProc.scala =================================================================== --- hash-join/trunk/tools/LogProc.scala 2008-03-23 22:36:31 UTC (rev 641) +++ hash-join/trunk/tools/LogProc.scala 2008-03-24 03:37:25 UTC (rev 642) @@ -28,9 +28,8 @@ // Parse logs into Stats. for (line <- lines) { if (line contains indexer) { - if (index != None) { + if (index != None) stats(index.get) += map.clone - } index = Some(line.split(" ")(1).toInt) map.clear } else { @@ -39,6 +38,8 @@ map(name) = value.toDouble / 1000.0 } } + if (index != None) + stats(index.get) += map.clone // Build plot data. val plotData = for (name <- names) yield { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |