From a045cce27a7aadb50a4a31d500e57eb7f34153fd Mon Sep 17 00:00:00 2001 From: Michael Hackstein Date: Mon, 27 Apr 2015 11:58:33 -0700 Subject: [PATCH] Improved line width and time is always tp precission 3. --- .../_admin/aardvark/APP/frontend/js/views/demoView.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/apps/system/_admin/aardvark/APP/frontend/js/views/demoView.js b/js/apps/system/_admin/aardvark/APP/frontend/js/views/demoView.js index 040e71370f..b195319f3d 100644 --- a/js/apps/system/_admin/aardvark/APP/frontend/js/views/demoView.js +++ b/js/apps/system/_admin/aardvark/APP/frontend/js/views/demoView.js @@ -318,7 +318,7 @@ var tempHTML = ""; tempHTML = "Aggregation - Flight distribution
" + - "Query needed: " + (timeTaken/1000) + "sec" + "
" + + "Query needed: " + (timeTaken/1000).toFixed(3) + " sec" + "
" + "Number destinations: " + list.length + "
" + "Number flights: " + allFlights + "
" + "Top 5:
"; @@ -384,7 +384,7 @@ var tempHTML = ""; tempHTML = "" + airportData.get("Name").substr(0,25) + " - " + airport + "
" + - "Query needed: " + (timeTaken/1000) + "sec" + "
" + + "Query needed: " + (timeTaken/1000).toFixed(3) + " sec" + "
" + "Number destinations: " + list.length + "
" + "Number flights: " + allFlights + "
" + "Top 5:
"; @@ -407,7 +407,7 @@ //var intervallWidth = length/2; // return Math.floor(pos/intervallWidth) + 2; //TODO: no custom width for lines wanted? - return 1.5; + return 2; }, calculateFlightColor: function(length, pos) { @@ -542,7 +542,7 @@ } var tempHTML = ""; tempHTML = "Path - Shortest Flight
" + - "Query needed: " + (timeTaken/1000) + "sec" + "
" + + "Query needed: " + (timeTaken/1000).toFixed(3) + " sec" + "
" + "Number switches: " + (vertices.length - 2) + "
" + "Number flights: " + list.edges.length + "
" + "Airports:
";