We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74ca25d commit 1796f2aCopy full SHA for 1796f2a
1 file changed
asap-query-engine/src/engines/simple_engine/sql.rs
@@ -472,8 +472,9 @@ impl SimpleEngine {
472
473
// Calculate timestamps
474
let end_timestamp = self.align_end_timestamp_sql(query_time);
475
- let duration_secs = match_result.outer_data()?.time_info.get_duration() as u64;
476
- let start_timestamp = end_timestamp - (duration_secs * 1000);
+ let duration_ms =
+ (match_result.outer_data()?.time_info.get_duration() * 1000.0).round() as u64;
477
+ let start_timestamp = end_timestamp - duration_ms;
478
479
let timestamps = QueryTimestamps {
480
start_timestamp,
0 commit comments