Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Unified Diff: base/process_util_linux.cc

Issue 339012: Report "N/A" for memory columns in Linux Task Manager. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Also fix minor bug in linux PorcessMetrics Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/task_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process_util_linux.cc
===================================================================
--- base/process_util_linux.cc (revision 30080)
+++ base/process_util_linux.cc (working copy)
@@ -262,7 +262,7 @@
int private_kb = 0;
int pss_kb = 0;
bool have_pss = false;
- if (!file_util::ReadFileToString(stat_file, &smaps))
+ if (!file_util::ReadFileToString(stat_file, &smaps) || smaps.length() == 0)
return false;
StringTokenizer tokenizer(smaps, ":\n");
« no previous file with comments | « no previous file | chrome/browser/task_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698