Cleaned up start/stop time stuff

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2324 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Tom Copeland
2003-10-22 14:29:36 +00:00
parent 9ee78f9e28
commit 5ccb569b3b

View File

@ -5,7 +5,6 @@ require '/home/tom/data/pmd/pmd-web/src/pmd.rb'
Dir.chdir(PMD::Job::ROOT);
jobsDir = Dir.new("jobs/")
start=Time.now
jobsDir.each { |candidate|
begin
if candidate[".txt"]
@ -21,6 +20,7 @@ jobsDir.each { |candidate|
job.run_pmd
job.run_cpd
job.ncss
`echo #{Time.now} > lastruntime.txt`
job.copy_up
job.clear
end
@ -29,7 +29,3 @@ jobsDir.each { |candidate|
puts "Exiting with error: #{$!}"
end
}
stop=Time.now
`echo #{stop} > lastruntime.txt`