From ebb43f72e5a85ea0a6dd9acce8b4e4a0fcd77d19 Mon Sep 17 00:00:00 2001 From: guanghonglu Date: Fri, 28 Oct 2022 10:46:42 +0800 Subject: [PATCH] fix: add time judgement --bug=0 --- sandbox/time_statics.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sandbox/time_statics.go b/sandbox/time_statics.go index ff7807b..08d868c 100644 --- a/sandbox/time_statics.go +++ b/sandbox/time_statics.go @@ -153,7 +153,9 @@ func (t *TxDuration) addSysCallDuration(duration *SysCallDuration) { // EnterNextStep enter next duration tx step func EnterNextStep(msg *protogo.DockerVMMessage, stepType protogo.StepType, log string) { - + if len(msg.StepDurations) == 0 { + return + } if stepType != protogo.StepType_RUNTIME_PREPARE_TX_REQUEST { endTxStep(msg) } -- GitLab