From e3c2427ca2446d1f0edffd60c906689b848f647c Mon Sep 17 00:00:00 2001 From: Kajari Ghosh Date: Fri, 7 Dec 2018 23:53:58 -0500 Subject: [PATCH] add rounding --- src/engine/plugins/table.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/plugins/table.cpp b/src/engine/plugins/table.cpp index 53d1a974d..e8062f9df 100644 --- a/src/engine/plugins/table.cpp +++ b/src/engine/plugins/table.cpp @@ -132,7 +132,7 @@ Status TablePlugin::HandleRequest(const RoutingAlgorithmsInterface &algorithms, result_tables_pair.first[table_index] != MAXIMAL_EDGE_DURATION) { result_tables_pair.first[table_index] = - result_tables_pair.first[table_index] * (double)params.scale_factor; + std::lround(result_tables_pair.first[table_index] * (double)params.scale_factor); } } }