Skip to content

Commit

Permalink
Merge pull request #177 from dalance/fix_doc
Browse files Browse the repository at this point in the history
Remove obsolete document about stat field
  • Loading branch information
eminence authored Jul 5, 2022
2 parents 257ae53 + 7e34dd7 commit b9f32af
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/process/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1147,9 +1147,6 @@ impl Process {
}

/// Returns the status info from `/proc/[pid]/stat`.
///
/// Note that this data comes pre-loaded in the `stat` field. This method is useful when you
/// get the latest status data (since some of it changes while the program is running)
pub fn stat(&self) -> ProcResult<Stat> {
let file = FileWrapper::open_at(&self.root, &self.fd, "stat")?;
let stat = Stat::from_reader(file)?;
Expand Down

0 comments on commit b9f32af

Please sign in to comment.