Skip to content

Commit

Permalink
fix start offset by negative val
Browse files Browse the repository at this point in the history
  • Loading branch information
chiyang10000 committed May 11, 2024
1 parent 7e62b8d commit e6e635a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/plan-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1151,7 +1151,7 @@ export class PlanService {
// 5337/5337 ms to end, start offset by 4.277/4.277 ms.
const firstOutputMatch = /(([0-9.]+)\/)?([0-9.]+) ms to first row/.exec(line);
const allOutputMatch = /(([0-9.]+)\/)?([0-9.]+) ms to end/.exec(line);
const startOffsetMatch = /start offset by (([0-9.]+)\/)?([0-9.]+) ms/.exec(line);
const startOffsetMatch = /start offset by (-?([0-9.]+)\/)?(-?[0-9.]+) ms/.exec(line);
if (allOutputMatch && startOffsetMatch) {
const startOffset = parseFloat(startOffsetMatch[3]);
const startupTime = (firstOutputMatch ? parseFloat(firstOutputMatch[3]) : parseFloat(allOutputMatch[3]));
Expand Down

0 comments on commit e6e635a

Please sign in to comment.