From cc6eadf4196778132d6f3ed7de1ff2bb7db984d4 Mon Sep 17 00:00:00 2001 From: mguetlein Date: Sun, 15 Jul 2012 11:54:46 +0200 Subject: somehow task progress raised an eror with 100.0 not>= 100 --- fminer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3