File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
redisinsight/api/src/modules/workbench Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,6 @@ export class WorkbenchService {
81
81
db,
82
82
databaseId : clientMetadata . databaseId ,
83
83
} ;
84
- let executionTimeInNanoseconds = BigInt ( 0 ) ;
85
84
86
85
const startCommandExecutionTime = process . hrtime . bigint ( ) ;
87
86
@@ -96,11 +95,9 @@ export class WorkbenchService {
96
95
} ) ;
97
96
}
98
97
const result = await this . commandsExecutor . sendCommand ( clientMetadata , { ...dto , command } ) ;
99
- const endCommandExecutionTime = process . hrtime . bigint ( ) ;
100
-
101
- executionTimeInNanoseconds += ( endCommandExecutionTime - startCommandExecutionTime ) ;
102
98
return ( { ...result [ 0 ] , command } ) ;
103
99
} ) ) ;
100
+ const executionTimeInNanoseconds = process . hrtime . bigint ( ) - startCommandExecutionTime ;
104
101
105
102
if ( Number ( executionTimeInNanoseconds ) !== 0 ) {
106
103
commandExecution . executionTime = Math . round ( Number ( executionTimeInNanoseconds ) / 1000 ) ;
You can’t perform that action at this time.
0 commit comments