gao-sun / eul

🖥️ macOS status monitoring app written in SwiftUI.
MIT License
9.24k stars 346 forks source link

[bug] erroneous download speed #226

Open YiquanGu opened 3 years ago

YiquanGu commented 3 years ago

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

Describe the Bug

M1 Mac Big Sur USB tethered with an Android 5G phone using HoRNDIS. Download speed is as expected (~200Mbps) but EUL reports 0. Reported upload speed appears correct.

Expected Behavior

Correctly reporting current download speed.

Screenshots Download speed is reported as the the second number on the top right corner.

Screenshot 2021-08-05 at 13 08 41

Context

Debug Output

⚙️ loaded data from user defaults preference {
  "showIcon" : true,
  "upgradeMethod" : "showInStatusBar",
  "smcRefreshRate" : 3,
  "fontDesign" : "default",
  "showNetworkTopActivities" : true,
  "temperatureUnit" : "celius",
  "appearance" : "auto",
  "checkStatusItemVisibility" : true,
  "networkRefreshRate" : 1,
  "language" : "zh-Hans",
  "cpuMenuDisplay" : "usagePercentage",
  "textDisplay" : "singleLine",
  "showRAMTopActivities" : true,
  "showCPUTopActivities" : true
}
SMC init error unknown(kIOReturn: -536870206, SMCResult: 0)
⚙️ loaded data from user defaults EulComponent {
  "showComponents" : true,
  "availableComponents" : [
    "GPU",
    "Disk"
  ],
  "activeComponents" : [
    "Network",
    "Memory",
    "CPU"
  ]
}
shell with ["system_profiler SPDisplaysDataType -xml"]
⚙️ loaded data from user defaults componentConfig {
  "configs" : [
    {
      "showGraph" : false,
      "networkPortSelection" : "",
      "diskSelection" : "",
      "showIcon" : false,
      "component" : "CPU"
    },
    {
      "showGraph" : false,
      "networkPortSelection" : "",
      "diskSelection" : "",
      "showIcon" : false,
      "component" : "Memory"
    },
    {
      "showGraph" : false,
      "networkPortSelection" : "",
      "diskSelection" : "",
      "showIcon" : true,
      "component" : "Network"
    },
    {
      "showGraph" : false,
      "networkPortSelection" : "",
      "diskSelection" : "",
      "showIcon" : true,
      "component" : "Disk"
    },
    {
      "showGraph" : false,
      "networkPortSelection" : "",
      "diskSelection" : "",
      "showIcon" : true,
      "component" : "GPU"
    }
  ],
  "converted" : true
}
⚙️ loaded data from user defaults CpuTextComponent {
  "activeComponents" : [
    "usagePercentage"
  ],
  "showComponents" : true,
  "availableComponents" : [
    "loadAverage1Min",
    "temperature",
    "loadAverage5Min",
    "loadAverage15Min"
  ]
}
⚙️ loaded data from user defaults MemoryTextComponent {
  "availableComponents" : [
    "usagePercentage",
    "usage",
    "total",
    "temperature"
  ],
  "showComponents" : true,
  "activeComponents" : [
    "free"
  ]
}
⚙️ loaded data from user defaults NetworkTextComponent {
  "showComponents" : true,
  "activeComponents" : [
    "upload",
    "download"
  ],
  "availableComponents" : [

  ]
}
shell with ["networksetup -listnetworkserviceorder"]
shell with ["ifconfig"]
network services order [eul.Info.NetworkPort(port: Optional("Ethernet"), device: "en0"), eul.Info.NetworkPort(port: Optional("Thunderbolt Ethernet Slot 0"), device: "en7"), eul.Info.NetworkPort(port: Optional("RMX3241"), device: "en9"), eul.Info.NetworkPort(port: Optional("Wi-Fi"), device: "en1"), eul.Info.NetworkPort(port: Optional("Bluetooth PAN"), device: "en4")]
network active interfaces ["ap1", "en9", "bridge100"]
network current active interfaces NetworkPort(port: Optional("RMX3241"), device: "en9")
shell with ["netstat -bI en9"]
zsh: abort      /Applications/eul.app/Contents/MacOS/eul --debug

Is Related to a Crash?

No

gao-sun commented 3 years ago

thanks, will take a look

gao-sun commented 3 years ago

actually would you mind to take a look at "network" section to see if auto detection is correct? image

YiquanGu commented 3 years ago

actually would you mind to take a look at "network" section to see if auto detection is correct? image

Thanks for looking into this! I can confirm that auto detection returns correct result of the tethered USB connection "en9".

gao-sun commented 3 years ago

interesting. will try to connect a phone and see if the speed is correct