eul icon indicating copy to clipboard operation
eul copied to clipboard

[bug] Incorrect free space on Disk component

Open zkvvoob opened this issue 4 years ago • 2 comments

Make sure there's no open issue for the same bug before submit.

Describe the Bug As far as I can tell, the Disk indicator shows a wrong value for free space (or for any other type of metric, for that matter), compared to the Storage section in "About This Mac".

Expected Behavior I would hope that the two match.

Screenshots изображение

Context

  • eul version: 1.5.10
  • macOS version: 11.2
  • Device model: MacBook Pro 2021 M1

Debug Output

⚙️ loaded data from user defaults preference {
  "cpuMenuDisplay" : "usagePercentage",
  "showRAMTopActivities" : false,
  "fontDesign" : "default",
  "textDisplay" : "compact",
  "showCPUTopActivities" : true,
  "showNetworkTopActivities" : false,
  "showIcon" : true,
  "networkRefreshRate" : 3,
  "checkStatusItemVisibility" : true,
  "smcRefreshRate" : 3,
  "language" : "en",
  "temperatureUnit" : "celius"
}
SMC init error unknown(kIOReturn: -536870206, SMCResult: 0)
🔋 battery info 100 100 0 940 false false good battery 
🔋 battery info 100 100 0 940 false false good battery 
⚙️ loaded data from user defaults EulComponent {
  "showComponents" : true,
  "availableComponents" : [
    "GPU"
  ],
  "activeComponents" : [
    "CPU",
    "Memory",
    "Network",
    "Disk",
    "Battery"
  ]
}
shell with ["system_profiler SPDisplaysDataType -xml"] 
shell with ["route get 0.0.0.0 | grep interface | awk \'{print $2}\'"] 
shell with ["netstat -bI en0"] 
⚙️ loaded data from user defaults componentConfig {
  "converted" : true,
  "configs" : [
    {
      "component" : "GPU",
      "showGraph" : false,
      "diskSelection" : "",
      "showIcon" : true
    },
    {
      "component" : "Memory",
      "showGraph" : false,
      "diskSelection" : "",
      "showIcon" : true
    },
    {
      "component" : "Network",
      "showGraph" : false,
      "diskSelection" : "",
      "showIcon" : true
    },
    {
      "component" : "Disk",
      "showGraph" : false,
      "diskSelection" : "Macintosh HD",
      "showIcon" : true
    },
    {
      "component" : "Battery",
      "showGraph" : false,
      "diskSelection" : "",
      "showIcon" : true
    },
    {
      "component" : "CPU",
      "showGraph" : false,
      "diskSelection" : "",
      "showIcon" : true
    }
  ]
}
⚙️ loaded data from user defaults CpuTextComponent {
  "showComponents" : true,
  "activeComponents" : [
    "usagePercentage"
  ],
  "availableComponents" : [
    "loadAverage1Min",
    "loadAverage5Min",
    "loadAverage15Min",
    "temperature"
  ]
}
⚙️ loaded data from user defaults MemoryTextComponent {
  "showComponents" : true,
  "activeComponents" : [
    "usagePercentage"
  ],
  "availableComponents" : [
    "total",
    "temperature",
    "free",
    "usage"
  ]
}
⚙️ loaded data from user defaults BatteryTextComponent {
  "availableComponents" : [
    "mah"
  ],
  "showComponents" : false,
  "activeComponents" : [
    "percentage"
  ]
}
⚙️ loaded data from user defaults DiskTextComponent {
  "showComponents" : true,
  "activeComponents" : [
    "free"
  ],
  "availableComponents" : [
    "usage",
    "usagePercentage",
    "total"
  ]
}

Is Related to a Crash? No

zkvvoob avatar Feb 07 '21 06:02 zkvvoob

I know what you are seeing. Open up disk utility, and see the free space number on there and it will make sense. For some reason, the About This Mac tab's disk space is greater than the disk space in disk utility. After doing some research, this might have something to do with macOS versions after Catalina creating purgeable files that can be cleaned manually.

jevonmao avatar Feb 07 '21 16:02 jevonmao

I see! Thank you very much for this hint. Do you know how these purgeable files can actually be purged?

На нд, 7.02.2021 г. в 18:32 ч. Jevon Mao [email protected] написа:

I know what you are seeing. Open up disk utility, and see the free space number on there and it will make sense. For some reason, the About This Mac tab's disk space is greater than the disk space in disk utility. After doing some research, this might have something to do with macOS versions after Catalina creating purgeable files that can be cleaned manually.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gao-sun/eul/issues/182#issuecomment-774703952, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB2KU4CHFGXG25FBV5FNSQDS526BJANCNFSM4XHDYXXA .

zkvvoob avatar Feb 07 '21 17:02 zkvvoob