Skip to content

Commit 03bb2d2

Browse files
committed
fix trigger condition
1 parent 0c90352 commit 03bb2d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ const extension: JupyterFrontEndPlugin<void> = {
8989
metadata
9090
);
9191
const diff = new Date(<any>cellEndTime - <any>cellStartTime);
92-
if (diff.getSeconds() >= minimumCellExecutionTime) {
92+
if (diff.getTime() / 1000 >= minimumCellExecutionTime) {
9393
const cellDuration = diff.toISOString().substr(11, 8);
9494
const cellNumber =
9595
cellNumberType === 'cell_index'

0 commit comments

Comments
 (0)