diff --git a/js/pred/pred-new.js b/js/pred/pred-new.js index 74ef84a..ccab97d 100644 --- a/js/pred/pred-new.js +++ b/js/pred/pred-new.js @@ -325,7 +325,7 @@ function plotStandardPrediction(prediction){ // Calculate range and time of flight var range = distHaversine(launch.latlng, landing.latlng, 1); var flighttime = ""; - var f_hours = Math.floor((prediction.flight_time % 86400) / 3600); + var f_hours = Math.floor(prediction.flight_time / 3600); var f_minutes = Math.floor(((prediction.flight_time % 86400) % 3600) / 60); if ( f_minutes < 10 ) f_minutes = "0"+f_minutes; flighttime = f_hours + "hr" + f_minutes; @@ -656,4 +656,4 @@ function writeHourlyPredictionInfo(settings, metadata, request) { $("#run_time").html(run_time); $("#dataset").html(dataset); -} \ No newline at end of file +}