mirror of
https://github.com/google/benchmark.git
synced 2025-01-14 05:40:14 +08:00
Fix ResultsCheckerEntry::NumThreads()
This commit is contained in:
parent
92034a8b84
commit
2814e9d8dc
@ -75,9 +75,9 @@ struct ResultsCheckerEntry {
|
||||
ResultsCheckerEntry(std::string const& n) : name(n) {}
|
||||
|
||||
int NumThreads() const {
|
||||
auto pos = name.find_last_of("/threads:");
|
||||
auto pos = name.find("/threads:");
|
||||
if(pos == name.npos) return 1;
|
||||
auto end = name.find_last_of('/', pos + 9);
|
||||
auto end = name.find('/', pos + 9);
|
||||
std::stringstream ss;
|
||||
ss << name.substr(pos + 9, end);
|
||||
int num = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user