subhra74 / snowflake

Graphical SFTP client and terminal emulator with helpful utilities
GNU General Public License v3.0
2.18k stars 233 forks source link

Can't start System Monitor on BusyBox systems #213

Open hardliner66 opened 2 years ago

hardliner66 commented 2 years ago

Describe the bug The head command on busybox doesn't seem to allow the -1 parameter. For better compatibility -n 1 should be used. See: https://github.com/subhra74/snowflake/blob/master/muon-app/src/main/java/muon/app/ui/components/session/utilpage/sysload/LinuxMetrics.java#L23

To Reproduce Steps to reproduce the behavior:

  1. Connect to a server running busybox
  2. Start System Monitor
  3. Check Log Output

Expected behavior System Monitor should no crash

Desktop (please complete the following information):