Skip to content

Commit

Permalink
Merge pull request prometheus#83 from liubin/patch-1
Browse files Browse the repository at this point in the history
fix typo: hugetblpages -> hugetlbpages
  • Loading branch information
eminence authored Jun 18, 2020
2 parents 0e4d316 + fd397c9 commit e6464ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/process/status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ pub struct Status {
/// pages by kibibytes; shmem swap usage is not included (since Linux 2.6.34).
pub vmswap: Option<u64>,
/// Size of hugetlb memory portions by kB. (since Linux 4.4).
pub hugetblpages: Option<u64>,
pub hugetlbpages: Option<u64>,
/// Number of threads in process containing this thread.
pub threads: u64,
/// This field contains two slash-separated numbers that
Expand Down Expand Up @@ -244,7 +244,7 @@ impl Status {
vmlib: Status::parse_with_kb(map.remove("VmLib"))?,
vmpte: Status::parse_with_kb(map.remove("VmPTE"))?,
vmswap: Status::parse_with_kb(map.remove("VmSwap"))?,
hugetblpages: Status::parse_with_kb(map.remove("HugetlbPages"))?,
hugetlbpages: Status::parse_with_kb(map.remove("HugetlbPages"))?,
threads: from_str!(u64, &expect!(map.remove("Threads"))),
sigq: expect!(Status::parse_sigq(&expect!(map.remove("SigQ")))),
sigpnd: from_str!(u64, &expect!(map.remove("SigPnd")), 16),
Expand Down Expand Up @@ -399,6 +399,6 @@ mod tests {
assert_eq!(status.vmlib, None);
assert_eq!(status.vmpte, None);
assert_eq!(status.vmswap, None);
assert_eq!(status.hugetblpages, None);
assert_eq!(status.hugetlbpages, None);
}
}

0 comments on commit e6464ce

Please sign in to comment.