mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-20 12:27:18 +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(),
|
ID: uuid.NewString(),
|
||||||
Label: "1panel_original",
|
Label: "1panel_original",
|
||||||
Size: uint64(originalSize),
|
Size: uint64(originalSize),
|
||||||
IsCheck: true,
|
IsCheck: originalSize > 0,
|
||||||
IsRecommend: true,
|
IsRecommend: true,
|
||||||
Type: "1panel_original",
|
Type: "1panel_original",
|
||||||
Children: loadTreeWithDir(true, "1panel_original", originalPath, fileOp),
|
Children: loadTreeWithDir(true, "1panel_original", originalPath, fileOp),
|
||||||
|
@ -86,7 +86,7 @@ func (u *DeviceService) Scan() dto.CleanData {
|
||||||
ID: uuid.NewString(),
|
ID: uuid.NewString(),
|
||||||
Label: "snapshot",
|
Label: "snapshot",
|
||||||
Size: snapSize,
|
Size: snapSize,
|
||||||
IsCheck: true,
|
IsCheck: snapSize > 0,
|
||||||
IsRecommend: true,
|
IsRecommend: true,
|
||||||
Type: "snapshot",
|
Type: "snapshot",
|
||||||
Children: snapTree,
|
Children: snapTree,
|
||||||
|
@ -101,7 +101,7 @@ func (u *DeviceService) Scan() dto.CleanData {
|
||||||
ID: uuid.NewString(),
|
ID: uuid.NewString(),
|
||||||
Label: "rollback",
|
Label: "rollback",
|
||||||
Size: rollbackSize,
|
Size: rollbackSize,
|
||||||
IsCheck: true,
|
IsCheck: rollbackSize > 0,
|
||||||
IsRecommend: true,
|
IsRecommend: true,
|
||||||
Type: "rollback",
|
Type: "rollback",
|
||||||
Children: rollBackTree,
|
Children: rollBackTree,
|
||||||
|
@ -127,7 +127,7 @@ func (u *DeviceService) Scan() dto.CleanData {
|
||||||
ID: uuid.NewString(),
|
ID: uuid.NewString(),
|
||||||
Label: "unused",
|
Label: "unused",
|
||||||
Size: unusedSize,
|
Size: unusedSize,
|
||||||
IsCheck: true,
|
IsCheck: unusedSize > 0,
|
||||||
IsRecommend: true,
|
IsRecommend: true,
|
||||||
Type: "unused",
|
Type: "unused",
|
||||||
Children: unusedTree,
|
Children: unusedTree,
|
||||||
|
|
Loading…
Add table
Reference in a new issue