Skip to content

Commit f68a10d

Browse files
committed
fix: lower CPU sanity-check cutoff to <1 core instead of <2
1 parent d17bcd0 commit f68a10d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ddprof-lib/src/main/cpp/sanityCheck.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ Error SanityChecker::runChecks(const Arguments& /*args*/) {
106106

107107
// --- Run checks ---
108108
// Per DataDog/java-profiler#480, the profiler refuses to run with fewer
109-
// than 2 cores. An unknown core count (-1) never fails this check — see
109+
// than 1 core. An unknown core count (-1) never fails this check — see
110110
// the effective_cores computation above.
111-
bool cpu_fail = (effective_cores >= 0 && effective_cores < 2);
111+
bool cpu_fail = (effective_cores >= 0 && effective_cores < 1);
112112
bool mem_fail = (hotspot && upper > 0 && lower > upper);
113113

114114
if (!cpu_fail && !mem_fail) {

0 commit comments

Comments
 (0)