Index: base/process_util_linux.cc |
diff --git a/base/process_util_linux.cc b/base/process_util_linux.cc |
index a05e9bb4fc1b5971bc6d0fdf12f20af54153edf2..53e7d028c7793aefd1d93db9e35bf79853f2fd69 100644 |
--- a/base/process_util_linux.cc |
+++ b/base/process_util_linux.cc |
@@ -292,11 +292,10 @@ bool ProcessMetrics::GetWorkingSetKBytes(WorkingSetKBytes* ws_usage) const { |
ws_usage->priv = private_kb; |
// Sharable is not calculated, as it does not provide interesting data. |
ws_usage->shareable = 0; |
- if (have_pss) { |
- ws_usage->shared = pss_kb - private_kb; |
- } else { |
- ws_usage->shared = shared_kb; |
- } |
+ |
+ ws_usage->shared = 0; |
+ if (have_pss) |
+ ws_usage->shared = pss_kb; |
return true; |
} |