i3status Says RasPi4 Has Terrabytes of RAM

This forum is for discussion about general software issues.

i3status Says RasPi4 Has Terrabytes of RAM

Postby tmmd » Thu Feb 13, 2020 8:43 pm

Hey there,

I recently installed i3wm on my Raspberry Pi 4, and am running into something wonky with i3status in my i3bar. The default i3status config file has the line:

Code: Select all
format = "%used | %available"


which is supposed to set i3status up to show me how much RAM I am currently using and how much total RAM my system has. I noticed that it was giving me sane numbers for how much I was using, but said that I had something like 16000000 TiB of system RAM. I figured that wasn't too big a deal, so I edited the config file to just show how much RAM I'm using (see 'memory' block of the config file below).

However, now that I'm using my RasPi more I've noticed that there's a similar issue with i3status's %used feature, at least as I've currently set it up. It gives me sane results up until 2.0 GiB, but it seems like once it needs to go to 2.1 GiB it jumps up to 16777216.0 TiB instead.

I'm not sure where to even look for how to fix this, so any pointers you might be able to share would be a huge help.

Thanks!


Config File:

Code: Select all
# i3status configuration file.
# see "man i3status" for documentation.

# It is important that this file is edited as UTF-8.
# The following line should contain a sharp s:
# ß
# If the above line is not correctly displayed, fix your editor first!

general {
   output_format = "i3bar"
  colors = true
  color_good = "#50FA7B"
  color_degraded = "#F1FA8C"
  color_bad = "#FF5555"
  interval = 5
}

order += "path_exists VPN"
order += "disk /"
order += "memory"
order += "cpu_usage"
order += "tztime localDate"
order += "tztime localTime"

path_exists VPN {
   path = "/proc/sys/net/ipv4/conf/tun0"
}

disk "/" {
            prefix_type = decimal
        format = "SD: %percentage_used"
            low_threshold = 10
            threshold_type = percentage_avail
            format_below_threshold = "SD: %avail left"
}

memory {
        format = "RAM: %used"
}

cpu_usage {
   format = "CPU: %usage    |"
   degraded_threshold = 75
   max_threshold = 90
}

tztime localDate {
   format = "|     %a, %b %e"
}

tztime localTime {
   format = "%I:%M %P "
}
tmmd
 
Posts: 17
Joined: Sun Jan 19, 2020 3:34 am

Re: i3status Says RasPi4 Has Terrabytes of RAM

Postby tmmd » Thu Feb 13, 2020 8:48 pm

Oops, probably worth mentioning that it's a 4gb model RasPi4.
tmmd
 
Posts: 17
Joined: Sun Jan 19, 2020 3:34 am


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest