brndnmtthws / brndnmtthws/conky
[Bug]: OpenBSD Variables ${fs_used] and ${fs_size} not displaying correct units.
- Dominant language
- C++
- Stars
- 8.5k
- Forks
- 666
- PR merge metrics
- No merged PRs in 30d
Description
### What happened?
Both ${fs_used} and ${fs_size} display wrong units. Instead of showing GiB, MiB is shown.
### Version
1.22.2-pre-
### Which OS/distro are you seeing the problem on?
OpenBSD 7.7
### Conky config
```Lua
conky.config = {
background = false,
use_xft = true,
font = 'Liberation Sans:size=12',
update_interval = 1.0,
total_run_times = 0,
own_window = true,
own_window_transparent = true,
own_window_type = 'normal',
own_window_argb_visual = true,
own_window_argb_value = 100,
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
double_buffer = true,
maximum_width = 230,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,
default_color = 'white',
default_shade_color = 'black',
default_outline_color = 'gray',
alignment = 'middle_right',
gap_x = 12,
gap_y = 12,
no_buffers = true,
uppercase = false,
top_name_verbose = true,
cpu_avg_samples = 2,
override_utf8_locale = false,
color1 = 'blue',
color2 = 'gray',
}
--##############################################
--# Output
--##############################################
conky.text = [[
Conky version: $conky_version
Host:$alignr $nodename
Kernel:$alignr $kernel
Freq$alignr${freq}MHz
RAM:$alignr $mem/$memmax
Disk usage:$alignr ${fs_used /}/${fs_size /}
Uptime: $alignr $uptime
CPU 0 usage: $alignr ${cpu cpu0}%
CPU 1 usage: $alignr ${cpu cpu1}%
CPU 2 usage: $alignr ${cpu cpu2}%
CPU 3 usage: $alignr ${cpu cpu3}%
CPU 4 usage: $alignr ${cpu cpu4}%
CPU 5 usage: $alignr ${cpu cpu5}%
CPU 6 usage: $alignr ${cpu cpu6}%
CPU 7 usage: $alignr ${cpu cpu7}%
CPU 8 usage: $alignr ${cpu cpu8}%
CPU 9 usage: $alignr ${cpu cpu9}%
CPU 10 usage:$alignr ${cpu cpu10}%
CPU 11 usage:$alignr ${cpu cpu11}%
CPU 12 usage:$alignr ${cpu cpu12}%
CPU 13 usage:$alignr ${cpu cpu13}%
CPU 14 usage:$alignr ${cpu cpu14}%
CPU 15 usage:$alignr ${cpu cpu15}%
System Load:$alignr ${loadavg}
Processes ${hr 1}
${top name 1}${alignr}${top cpu 1}
${top name 2}${alignr}${top cpu 2}
${top name 3}${alignr}${top cpu 3}
${top name 4}${alignr}${top cpu 4}
${top name 5}${alignr}${top cpu 5}
${top name 6}${alignr}${top cpu 6}
${top name 7}${alignr}${top cpu 7}
${top name 8}${alignr}${top cpu 8}
${top name 9}${alignr}${top cpu 9}
Network iwx0 ${hr 1}
Down: $color${downspeed iwx0} - ${alignr}Up: ${upspeed iwx0} -
${downspeedgraph iwx0 25,110 CCCCCC 0000FF} ${alignr}${upspeedgraph iwx0 25,110 000000 00ff00} $color
Total: ${totaldown iwx0} ${alignr}Total: ${totalup iwx0}
]]
```
### Stack trace
```GDB
```
### Relevant log output
```Shell
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by running the supplied Conky configuration on OpenBSD 7.7 and tracing the ${fs_used} and ${fs_size} entry points. Compare their displayed units with the filesystem values; done means both variables report the intended GiB or MiB units consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 50/100