fix: set progress to 100 when it's NaN (close #5906)

This commit is contained in:
Andy Hsu
2024-01-20 13:06:46 +08:00
parent a8c900d09e
commit 4f7761fe2c
3 changed files with 12 additions and 3 deletions

View File

@ -2,13 +2,14 @@ package tool
import (
"fmt"
"time"
"github.com/alist-org/alist/v3/internal/conf"
"github.com/alist-org/alist/v3/internal/errs"
"github.com/alist-org/alist/v3/internal/setting"
"github.com/pkg/errors"
log "github.com/sirupsen/logrus"
"github.com/xhofe/tache"
"time"
)
type DownloadTask struct {