File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ pub enum Error {
16
16
17
17
#[ derive( Debug ) ]
18
18
pub ( crate ) struct Sampler {
19
- procfs_sampler : procfs:: Sampler ,
20
- cgroup_sampler : cgroup:: Sampler ,
19
+ procfs : procfs:: Sampler ,
20
+ cgroup : cgroup:: Sampler ,
21
21
smaps_interval : u8 ,
22
22
}
23
23
@@ -27,8 +27,8 @@ impl Sampler {
27
27
let cgroup_sampler = cgroup:: Sampler :: new ( parent_pid, labels) ?;
28
28
29
29
Ok ( Self {
30
- procfs_sampler,
31
- cgroup_sampler,
30
+ procfs : procfs_sampler,
31
+ cgroup : cgroup_sampler,
32
32
smaps_interval : 10 ,
33
33
} )
34
34
}
@@ -42,8 +42,8 @@ impl Sampler {
42
42
false
43
43
} ;
44
44
45
- self . procfs_sampler . poll ( sample_smaps) . await ?;
46
- self . cgroup_sampler . poll ( ) . await ?;
45
+ self . procfs . poll ( sample_smaps) . await ?;
46
+ self . cgroup . poll ( ) . await ?;
47
47
48
48
Ok ( ( ) )
49
49
}
You can’t perform that action at this time.
0 commit comments