cjbassi / ytop

A TUI system monitor written in Rust
MIT License
2.16k stars 84 forks source link

Failed to display Swap in Memory Usage widget #101

Closed aofei closed 4 years ago

aofei commented 4 years ago

Required information:

Include any of the following information if relevant:

Please copy or attach ~/.local/state/ytop/errors.log if it exists and contains logs: null


As shown in the snaoshot below, the ytop failed to display Swap in the Memory Usage widget. BTW, the gotop can display it normally.

66DC0540-A4CA-415E-84E1-30C709DB6FFB

CosmicHorrorDev commented 4 years ago

I'm having a hard time reproducing this, but I only have a Pi 2 instead of a Pi 4 currently. Can you tell me:

aofei commented 4 years ago
  • What's the output of free -h?
              total        used        free      shared  buff/cache   available               
Mem:          7.6Gi       885Mi       1.6Gi       3.0Mi       5.1Gi       6.9Gi               
Swap:            0B          0B          0B
  • What OS are you running (seeing pacman makes me think ALARM)?

Yes, I'm using Arch Linux ARM.

  • Is this running within ssh since I see it on the process list?

More precisely, it's Mosh.

CosmicHorrorDev commented 4 years ago

Oh thank you for the very fast response! From the output of free I see you don't actually have any swap and ytop doesn't display swap if there isn't any.

CosmicHorrorDev commented 4 years ago

And mosh seems pretty interesting. I currently use ssh + tmux for keeping a session active that's going to last longer than a single ssh session, so I'll have to check it out and compare

aofei commented 4 years ago

... ytop doesn't display swap if there isn't any.

I thought ytop should be consistent with gotop (since they're from the same author).

Okay, I see, thank you for your answer. ❤️