Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.

Commit 71e7435

Browse files
committed
优化mongodb安装时间提示
1 parent 5462e40 commit 71e7435

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

teaweb/actions/default/settings/mongo/installStatus.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func (this *InstallStatusAction) Run(params struct{}) {
2020
leftSeconds := int(float64(100-installPercent) * float64(seconds) / float64(installPercent))
2121
if leftSeconds > 60 {
2222
timeLeft = fmt.Sprintf("%dm%ds", leftSeconds/60, leftSeconds%60)
23-
} else {
23+
} else if leftSeconds > 0 {
2424
timeLeft = fmt.Sprintf("%ds", leftSeconds)
2525
}
2626
}

0 commit comments

Comments
 (0)