We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 507c06e + bb77b39 commit 5d44fa5Copy full SHA for 5d44fa5
src/sysinfo.cc
@@ -404,7 +404,11 @@ int GetNumCPUs() {
404
if (ln.empty()) continue;
405
size_t SplitIdx = ln.find(':');
406
std::string value;
407
+#if defined(__s390__)
408
+ if (SplitIdx != std::string::npos) value = ln.substr(SplitIdx - 1, 2);
409
+#else
410
if (SplitIdx != std::string::npos) value = ln.substr(SplitIdx + 1);
411
+#endif
412
if (ln.size() >= Key.size() && ln.compare(0, Key.size(), Key) == 0) {
413
NumCPUs++;
414
if (!value.empty()) {
0 commit comments