Add EOS checking to 'parseLeadingNumber' function.
authorYablonskyy@axilera.com <Yablonskyy@axilera.com>
Fri, 12 Jun 2015 20:13:15 +0000 (13:13 -0700)
committerSara Golemon <sgolemon@fb.com>
Fri, 12 Jun 2015 20:18:17 +0000 (13:18 -0700)
commit01c150d50546fe4c8e2cf0c3a5f1796967e47005
treeb591c020606ab7ce4440ef519d5a10a9d031e802
parent2bf6f465d9d9b418c09f02a06842a34a67123907
Add EOS checking to 'parseLeadingNumber' function.

Summary: parseLeadingNumber does not contain EOS validation and raise an exception when '/sys/devices/system/cpu/cpu0/index0/shared_cpu_list' contains only one number like '0'.
Closes #207

Reviewed By: @yfeldblum

Differential Revision: D2148015

Pulled By: @sgolemon
folly/detail/CacheLocality.cpp