CPU check updates

* Fixes overload resolution error on macos
* Fixes avx looping index error
This commit is contained in:
Kevin Boyd
2021-07-12 10:22:26 -07:00
parent eab7812039
commit 9d920f58c3
5 changed files with 12 additions and 11 deletions

View File

@@ -444,8 +444,9 @@ Worker::Choices Worker::MakeChoices(BufferSet *b) {
Json("hash", c.hasher->Name()), ", ",
Json("copy", MalignBuffer::ToString(c.copy_method)), ", ",
Json("memset", c.use_repstos ? "rep;sto" : "memset"), ", ",
JsonBool("madvise", c.madvise), ", ", Json("size", c.buf_size), ", ",
Json("pid", pid_), ", ", Json("round", round_), ", ", c.hole.ToString());
JsonBool("madvise", c.madvise), ", ",
Json("size", static_cast<uint64_t>(c.buf_size)), ", ", Json("pid", pid_),
", ", Json("round", round_), ", ", c.hole.ToString());
return c;
}