Index: base/process/process_metrics_linux.cc |
diff --git a/base/process/process_metrics_linux.cc b/base/process/process_metrics_linux.cc |
index afa88486a0ba96c9fd613c7abe40e3f021d69fa1..647499099dc939789470dbd8a36beb0f46dce0f8 100644 |
--- a/base/process/process_metrics_linux.cc |
+++ b/base/process/process_metrics_linux.cc |
@@ -391,16 +391,16 @@ int ParseProcStatCPU(const std::string& input) { |
if (proc_stats.size() <= internal::VM_STIME) |
return -1; |
- int utime = GetProcStatsFieldAsInt(proc_stats, internal::VM_UTIME); |
- int stime = GetProcStatsFieldAsInt(proc_stats, internal::VM_STIME); |
+ int utime = GetProcStatsFieldAsInt64(proc_stats, internal::VM_UTIME); |
+ int stime = GetProcStatsFieldAsInt64(proc_stats, internal::VM_STIME); |
return utime + stime; |
} |
const char kProcSelfExe[] = "/proc/self/exe"; |
int GetNumberOfThreads(ProcessHandle process) { |
- return internal::ReadProcStatsAndGetFieldAsInt(process, |
- internal::VM_NUMTHREADS); |
+ return internal::ReadProcStatsAndGetFieldAsInt64(process, |
+ internal::VM_NUMTHREADS); |
} |
namespace { |