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

Unified Diff: base/sys_info_posix.cc

Issue 151202: Remove sysctl-read workarounds (Closed)
Patch Set: Created 11 years, 6 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
Index: base/sys_info_posix.cc
diff --git a/base/sys_info_posix.cc b/base/sys_info_posix.cc
index 8a83f3c6afd3e6c1b2b59570a62f17c4281c9823..388ccba4b9ec7d3edd7356f2f29f5bac5d54de7c 100644
--- a/base/sys_info_posix.cc
+++ b/base/sys_info_posix.cc
@@ -39,7 +39,7 @@ int SysInfo::NumberOfProcessors() {
#else
// It seems that sysconf returns the number of "logical" processors on both
// mac and linux. So we get the number of "online logical" processors.
- static long res = sysconf(_SC_NPROCESSORS_ONLN);
+ long res = sysconf(_SC_NPROCESSORS_ONLN);
if (res == -1) {
NOTREACHED();
return 1;

Powered by Google App Engine
This is Rietveld 408576698