This commit is contained in:
Haoran Yi 2022-11-28 18:57:47 -06:00 committed by HaoranYi
parent 1635b99486
commit 914f7bd85d
1 changed files with 1 additions and 1 deletions

View File

@ -836,7 +836,7 @@ impl SystemMonitorService {
Self::report_cpuid_values();
}
fn get_open_fd_stats() -> Option<(usize, usize, usize)> {
fn get_open_fd_stats() -> Option<(usize, usize, usize, usize)> {
let proc = Process::myself().ok()?;
let curr_num_open_fd = proc.fd_count().unwrap();
let curr_mmap_count = proc.maps().unwrap().len();