← Back to team overview

team4alfanous team mailing list archive

[Branch ~team4alfanous/alfanous/alfanous-git] Rev 429: Rounding the time of search in WUI to 5 decimal numbers, fix #96

 

------------------------------------------------------------
revno: 429
committer: Assem Chelli <assem.ch@xxxxxxxxx>
timestamp: Sat 2012-11-17 23:57:30 +0100
message:
  Rounding the time of search in WUI to 5 decimal numbers, fix #96
modified:
  interfaces/web/wui/index.html


--
lp:alfanous
https://code.launchpad.net/~team4alfanous/alfanous/alfanous-git

Your team Alfanous team is subscribed to branch lp:alfanous.
To unsubscribe from this branch go to https://code.launchpad.net/~team4alfanous/alfanous/alfanous-git/+edit-subscription
=== modified file 'interfaces/web/wui/index.html'
--- interfaces/web/wui/index.html	2012-11-17 13:34:12 +0000
+++ interfaces/web/wui/index.html	2012-11-17 22:57:30 +0000
@@ -148,7 +148,10 @@
 
 			// Note
 			results += "<br /><br /><span class='xbre'>نتيجة البحث</span><br /><br />";
-			results += "<center><b>الزمن المستغرق</b> : "+ json.search.runtime+ " ثانية</center>";
+			
+			// Round runtime to 5 decimals 
+			runtime = Math.round(json.search.runtime * Math.pow(10,5))/Math.pow(10,5)
+			results += "<center><b>الزمن المستغرق</b> : "+ runtime + " ثانية</center>";
 
 			// Suggestions