mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-18 19:36:21 +08:00
parent
795223e7fa
commit
23a1fbdd4b
1 changed files with 4 additions and 4 deletions
|
@ -51,7 +51,7 @@ func (u *DeviceService) Scan() dto.CleanData {
|
|||
ID: uuid.NewString(),
|
||||
Label: "1panel_original",
|
||||
Size: uint64(originalSize),
|
||||
IsCheck: true,
|
||||
IsCheck: originalSize > 0,
|
||||
IsRecommend: true,
|
||||
Type: "1panel_original",
|
||||
Children: loadTreeWithDir(true, "1panel_original", originalPath, fileOp),
|
||||
|
@ -86,7 +86,7 @@ func (u *DeviceService) Scan() dto.CleanData {
|
|||
ID: uuid.NewString(),
|
||||
Label: "snapshot",
|
||||
Size: snapSize,
|
||||
IsCheck: true,
|
||||
IsCheck: snapSize > 0,
|
||||
IsRecommend: true,
|
||||
Type: "snapshot",
|
||||
Children: snapTree,
|
||||
|
@ -101,7 +101,7 @@ func (u *DeviceService) Scan() dto.CleanData {
|
|||
ID: uuid.NewString(),
|
||||
Label: "rollback",
|
||||
Size: rollbackSize,
|
||||
IsCheck: true,
|
||||
IsCheck: rollbackSize > 0,
|
||||
IsRecommend: true,
|
||||
Type: "rollback",
|
||||
Children: rollBackTree,
|
||||
|
@ -127,7 +127,7 @@ func (u *DeviceService) Scan() dto.CleanData {
|
|||
ID: uuid.NewString(),
|
||||
Label: "unused",
|
||||
Size: unusedSize,
|
||||
IsCheck: true,
|
||||
IsCheck: unusedSize > 0,
|
||||
IsRecommend: true,
|
||||
Type: "unused",
|
||||
Children: unusedTree,
|
||||
|
|
Loading…
Add table
Reference in a new issue