Skip to content

Commit

Permalink
get_info: Fix unit of MemPeak from KB to B
Browse files Browse the repository at this point in the history
  • Loading branch information
kvinwang committed Oct 14, 2022
1 parent f53e9c5 commit e0d3956
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion standalone/pruntime/src/pal_gramine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ impl MemoryStats for GraminePlatform {
fn memory_usage(&self) -> MemoryUsage {
let stats = ALLOCATOR.stats();
MemoryUsage {
total_peak_used: vm_peak().unwrap_or_default(),
total_peak_used: vm_peak().unwrap_or_default() * 1024,
rust_used: stats.current_used,
rust_peak_used: stats.peak_used,
}
Expand Down

0 comments on commit e0d3956

Please sign in to comment.