Started working on implementing functions related to storage

master
Ronald1985 3 years ago
parent 9c7b6e97eb
commit 9033c1bf09

@ -228,3 +228,8 @@ get_cpu_usage_perc :: proc() -> (f64, bool) {
return (100 * ((b[0]+b[1]+b[2]) - (a[0]+a[1]+a[2])) / ((b[0]+b[1]+b[2]+b[3]) - (a[0]+a[1]+a[2]+a[3]))), true return (100 * ((b[0]+b[1]+b[2]) - (a[0]+a[1]+a[2])) / ((b[0]+b[1]+b[2]+b[3]) - (a[0]+a[1]+a[2]+a[3]))), true
} }
get_mountpoint_total_gb(mountpoint: string) -> (total: f64, ok: bool) {
return
}

@ -0,0 +1,7 @@
package sysinfo
statfs :: struct {
f_type: uint,
f_bsize: uint,
f_blocks: uint
}
Loading…
Cancel
Save