mirror of
https://codeberg.org/icewind/palantir.git
synced 2026-06-03 18:24:08 +02:00
show disk stats for mmcblk devices (sdcards)
This commit is contained in:
parent
04044c7af0
commit
0f003cd8af
1 changed files with 1 additions and 1 deletions
|
|
@ -207,7 +207,7 @@ pub fn hostname() -> Result<String> {
|
||||||
|
|
||||||
pub fn disk_stats() -> Result<impl Iterator<Item = IoStats>> {
|
pub fn disk_stats() -> Result<impl Iterator<Item = IoStats>> {
|
||||||
static DISK_REGEX: Lazy<Regex> =
|
static DISK_REGEX: Lazy<Regex> =
|
||||||
Lazy::new(|| Regex::new(r" ([sv]d[a-z]+|nvme[0-9]n[0-9]) ").unwrap());
|
Lazy::new(|| Regex::new(r" ([sv]d[a-z]+|nvme[0-9]n[0-9]|mmcblk[0-9]) ").unwrap());
|
||||||
|
|
||||||
let stat = BufReader::new(File::open("/proc/diskstats")?);
|
let stat = BufReader::new(File::open("/proc/diskstats")?);
|
||||||
Ok(stat
|
Ok(stat
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue