We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9aa84bd commit a4c60ffCopy full SHA for a4c60ff
src/process_collector.rs
@@ -132,8 +132,8 @@ impl Collector for ProcessCollector {
132
};
133
134
// file descriptors
135
- if let Ok(fd_list) = p.fd() {
136
- self.open_fds.set(fd_list.len() as f64);
+ if let Ok(fd_count) = p.fd_count() {
+ self.open_fds.set(fd_count as f64);
137
}
138
if let Ok(limits) = p.limits() {
139
if let procfs::process::LimitValue::Value(max) = limits.max_open_files.soft_limit {
0 commit comments