summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormguetlein <martin.guetlein@gmail.com>2012-07-15 11:54:46 +0200
committermguetlein <martin.guetlein@gmail.com>2012-07-15 11:54:46 +0200
commitcc6eadf4196778132d6f3ed7de1ff2bb7db984d4 (patch)
tree2e0403b9ed4dc2d455172ecdef72d5cf58b1510b
parentf7350549c9e861ca8cf91ca74696187e8ca7355d (diff)
somehow task progress raised an eror with 100.0 not>= 100
-rw-r--r--fminer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/fminer.rb b/fminer.rb
index bd21a7e..1232dfd 100644
--- a/fminer.rb
+++ b/fminer.rb
@@ -139,7 +139,7 @@ post '/fminer/:method/match?' do
res_dataset.add(c,f,1,true) if smarts_pattern.match(obmols[c])
end
count += 1
- task.progress step_width*count if count%10==0
+ task.progress step_width*count if count%10==0 and step_width*count<=100
end
end
res_dataset.save @subjectid