mirror of
https://github.com/ClementTsang/bottom
synced 2024-12-01 08:29:10 +00:00
dd66ae774c
* refactor: simplify some config -> constraints code * iteratively progress... * update bcr; this might need testing since I removed some old proc code * widget side * fix battery * fix widget tests with bandaid for now The issue was that the calculations assume a certain ratio for CPU legends. * add some tests * bump up * fix proc drawing issues So with the proc widget in certain places, there would be a panic during constraint determination. Looks like back when I wrote this I made some gross assumptions about certain things. In particular, the problem here was that the search added an additional "one" height, so that needs to be accounted for after we removed the "doubling" code. * tests * fix tests * reorganize tests * clippy * fix cross tests not working * fix builds for android
22 lines
283 B
TOML
22 lines
283 B
TOML
[[row]]
|
|
ratio = 30
|
|
[[row.child]]
|
|
type = "cpu"
|
|
[[row]]
|
|
ratio = 40
|
|
[[row.child]]
|
|
ratio = 4
|
|
type = "mem"
|
|
[[row.child]]
|
|
ratio = 3
|
|
[[row.child.child]]
|
|
type = "proc"
|
|
[[row.child.child]]
|
|
type = "proc"
|
|
[[row]]
|
|
ratio = 30
|
|
[[row.child]]
|
|
type = "net"
|
|
[[row.child]]
|
|
type = "proc"
|
|
default = true
|