Skip to content

Commit

Permalink
Merge pull request #5 from aspectron/fix-virtual-memory-size
Browse files Browse the repository at this point in the history
fix filling virtual memory size
  • Loading branch information
biryukovmaxim authored Aug 4, 2023
2 parents c63ac2d + a64ff79 commit 86fc18c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metrics/perf_monitor/src/counters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub(crate) struct Counters {
impl Counters {
pub(crate) fn update(&self, snapshot: CountersSnapshot) {
self.resident_set_size.store(snapshot.resident_set_size, Ordering::Release);
self.virtual_memory_size.store(snapshot.resident_set_size, Ordering::Release);
self.virtual_memory_size.store(snapshot.virtual_memory_size, Ordering::Release);
self.core_num.store(snapshot.core_num, Ordering::Release);
self.cpu_usage.store(snapshot.cpu_usage, Ordering::Release);
self.fd_num.store(snapshot.fd_num, Ordering::Release);
Expand Down

0 comments on commit 86fc18c

Please sign in to comment.