Skip to content

Commit d4427a2

Browse files
authored
Merge pull request #2014 from RedisInsight/be/bugfix/RI-4387_Wrong_time_execution_time_for_group_mode
#RI-4387 - Workbench command processing time in group mode is display…
2 parents bd6a48c + 8683f97 commit d4427a2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

redisinsight/api/src/modules/workbench/workbench.service.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ export class WorkbenchService {
8181
db,
8282
databaseId: clientMetadata.databaseId,
8383
};
84-
let executionTimeInNanoseconds = BigInt(0);
8584

8685
const startCommandExecutionTime = process.hrtime.bigint();
8786

@@ -96,11 +95,9 @@ export class WorkbenchService {
9695
});
9796
}
9897
const result = await this.commandsExecutor.sendCommand(clientMetadata, { ...dto, command });
99-
const endCommandExecutionTime = process.hrtime.bigint();
100-
101-
executionTimeInNanoseconds += (endCommandExecutionTime - startCommandExecutionTime);
10298
return ({ ...result[0], command });
10399
}));
100+
const executionTimeInNanoseconds = process.hrtime.bigint() - startCommandExecutionTime;
104101

105102
if (Number(executionTimeInNanoseconds) !== 0) {
106103
commandExecution.executionTime = Math.round(Number(executionTimeInNanoseconds) / 1000);

0 commit comments

Comments
 (0)