X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fservice_cores%2Fmain.c;h=9f520822546b71bd89e8d7d0cc3dd001755c6945;hb=328720c594f235aa44c78fe360e8e6f31b5e989f;hp=83915b9a5350fabbebd2c32298eb60eec7544096;hpb=7df485eb3d56fbe5e6fcd160d33ca971bc3d3572;p=dpdk.git diff --git a/examples/service_cores/main.c b/examples/service_cores/main.c index 83915b9a53..9f52082254 100644 --- a/examples/service_cores/main.c +++ b/examples/service_cores/main.c @@ -118,7 +118,7 @@ apply_profile(int profile_id) struct profile *p = &profiles[profile_id]; const uint8_t core_off = 1; - if (p->num_cores > rte_lcore_count() + 1) { + if (p->num_cores > rte_lcore_count() - 1) { printf("insufficent cores to run (%s)", p->name); return;