Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/5ocworkshop/bgraph
/ pct
Method
pct
examples/demo/cls_simulation.rs:74–76 ·
view source on GitHub ↗
(&self, val: f32)
Source
from the content-addressed store, hash-verified
72
73
impl BtopMemValues {
74
pub fn pct(&self, val: f32) -> u8 {
75
((val / self.total_gb) * 100.0) as u8
76
}
77
pub fn swap_pct(&self) -> u8 {
78
((self.swap_used_gb / self.swap_total_gb) * 100.0) as u8
79
}
Callers
1
render_mem_box
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected