Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Issue] awk: cmd. line:1: (FILENAME=- FNR=3) fatal: division by zero attempted #225

Closed
loeken opened this issue Feb 1, 2024 · 5 comments

Comments

@loeken
Copy link
Contributor

loeken commented Feb 1, 2024

  • I have read the instructions

The issue

  • Linux distro: manjaro
  • in output of "journalctl -f" i can see a lot of those error messages
  • I`m using gdm
Click to expand
Feb 01 13:37:04 framwork /usr/lib/gdm-wayland-session[1426]: awk: cmd. line:1: (FILENAME=- FNR=3) fatal: division by zero attempted
Feb 01 13:37:09 framwork /usr/lib/gdm-wayland-session[1426]: awk: cmd. line:1: (FILENAME=- FNR=3) fatal: division by zero attempted
Feb 01 13:37:14 framwork /usr/lib/gdm-wayland-session[1426]: awk: cmd. line:1: (FILENAME=- FNR=3) fatal: division by zero attempted
Feb 01 13:37:19 framwork /usr/lib/gdm-wayland-session[1426]: awk: cmd. line:1: (FILENAME=- FNR=3) fatal: division by zero attempted
Feb 01 13:37:24 framwork /usr/lib/gdm-wayland-session[1426]: awk: cmd. line:1: (FILENAME=- FNR=3) fatal: division by zero attempted
@loeken
Copy link
Contributor Author

loeken commented Feb 1, 2024

correct me if im wrong but i believe this comes from some part of the bar ( when i comment out the ) the error messages disappear

@end-4
Copy link
Owner

end-4 commented Feb 1, 2024

Do you have swap or zram? i recommend setting up the latter
My guess is that the swap memory indicator threw that when attempting to get the percentage by calculating used/total*100

@loeken
Copy link
Contributor Author

loeken commented Feb 1, 2024

I have neither, ( also havent heard of zram before ) I would rather like my applications to crash then swap to disk and i have plenty of ram so i dont want to use compression in ram (if i understand zrams purposes correctly )

could we maybe check if total not null and skip calculation to not divide by zero if null?

can you point me at where this calculation is located?

@loeken
Copy link
Contributor Author

loeken commented Feb 1, 2024

i raised a small pr to fix it in the 2 locations ive found this removes the logspam for me

@loeken
Copy link
Contributor Author

loeken commented Feb 2, 2024

thanks

@loeken loeken closed this as completed Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants