[Title] Fixed a bug that calc for empty room is wrong
authordonghee yang <donghee.yang@samsung.com>
Tue, 23 Apr 2013 00:38:19 +0000 (09:38 +0900)
committerdonghee yang <donghee.yang@samsung.com>
Tue, 23 Apr 2013 00:38:19 +0000 (09:38 +0900)
src/build_server/JobManager.rb

index 3ee72fa..7c288b6 100644 (file)
@@ -426,6 +426,8 @@ class JobManager
                (@jobs + @internal_jobs + @reverse_build_jobs).each do |job|
                        if job.status == "WORKING" then
                                working_cnt = working_cnt + 1
+                       else
+                               next
                        end
 
                        # must exclude parent job