diff --git a/src/util.cc b/src/util.cc index 483f4a6250..ef5f103305 100644 --- a/src/util.cc +++ b/src/util.cc @@ -647,6 +647,8 @@ int ParseCPUFromCGroup() { readCount(cpu->second + "/cpu.cfs_period_us"); if (!period.second) return -1; + if (period.first == 0) + return -1; return quota.first / period.first; } #endif diff --git a/src/version.cc b/src/version.cc index 0ab382cdba..e130b79374 100644 --- a/src/version.cc +++ b/src/version.cc @@ -20,7 +20,7 @@ using namespace std; -const char* kNinjaVersion = "1.11.0.conti.2"; +const char* kNinjaVersion = "1.11.1.conti.1"; void ParseVersion(const string& version, int* major, int* minor) { size_t end = version.find('.');