mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Update regex.
This commit is contained in:
parent
ad1b11771b
commit
a1d478fbb7
13 changed files with 71 additions and 70 deletions
|
@ -610,8 +610,8 @@ mod system_reporter {
|
|||
Some(cap) => cap,
|
||||
None => continue,
|
||||
};
|
||||
let perms = cap.at(1).unwrap();
|
||||
let pathname = cap.at(2).unwrap();
|
||||
let perms = cap.get(1).unwrap().as_str();
|
||||
let pathname = cap.get(2).unwrap().as_str();
|
||||
|
||||
// Construct the segment name from its pathname and permissions.
|
||||
curr_seg_name.clear();
|
||||
|
@ -635,7 +635,7 @@ mod system_reporter {
|
|||
Some(cap) => cap,
|
||||
None => continue,
|
||||
};
|
||||
let rss = cap.at(1).unwrap().parse::<usize>().unwrap() * 1024;
|
||||
let rss = cap.get(1).unwrap().as_str().parse::<usize>().unwrap() * 1024;
|
||||
|
||||
if rss > 0 {
|
||||
// Aggregate small segments into "other".
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue