mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-02 05:23:14 +00:00
misc sdk changes (#2934)
* misc sdk changes * delete the store ☠️ * port comments * fix build * fix removing * fix tests * beta.20 --------- Co-authored-by: Matt Hill <mattnine@protonmail.com>
This commit is contained in:
@@ -740,14 +740,13 @@ async fn get_proc_stat() -> Result<ProcStat, Error> {
|
||||
.collect::<Result<Vec<u64>, Error>>()?;
|
||||
|
||||
if stats.len() < 10 {
|
||||
Err(Error {
|
||||
source: color_eyre::eyre::eyre!(
|
||||
Err(Error::new(
|
||||
eyre!(
|
||||
"Columns missing from /proc/stat. Need 10, found {}",
|
||||
stats.len()
|
||||
),
|
||||
kind: ErrorKind::ParseSysInfo,
|
||||
revision: None,
|
||||
})
|
||||
ErrorKind::ParseSysInfo,
|
||||
))
|
||||
} else {
|
||||
Ok(ProcStat {
|
||||
user: stats[0],
|
||||
|
||||
Reference in New Issue
Block a user