mirror of https://github.com/F-Stack/f-stack.git
fix bug: Can not support more than 32 processes
This commit is contained in:
parent
ce3a97c9f6
commit
58f65b59d5
|
@ -113,7 +113,7 @@ parse_lcore_mask(struct ff_config *cfg, const char *coremask)
|
|||
if ((1 << j) & val) {
|
||||
proc_lcore[count] = idx;
|
||||
if (cfg->dpdk.proc_id == count) {
|
||||
sprintf(buf, "%x", 1<<idx);
|
||||
sprintf(buf, "%llx", (unsigned long long)1<<idx);
|
||||
cfg->dpdk.proc_mask = strdup(buf);
|
||||
}
|
||||
count++;
|
||||
|
|
Loading…
Reference in New Issue