forked from Mirrorlandia_minetest/minetest
Display whole profiler numbers up to 999999 without scientific notation. (#13155)
This commit is contained in:
parent
b8aaad4f1e
commit
cded6a3945
@ -154,8 +154,8 @@ int Profiler::print(std::ostream &o, u32 page, u32 pagecount)
|
||||
o << buffer;
|
||||
}
|
||||
|
||||
porting::mt_snprintf(buffer, sizeof(buffer), "% 5ix % 4.4g",
|
||||
getAvgCount(i.first), i.second);
|
||||
porting::mt_snprintf(buffer, sizeof(buffer), "% 5ix % 7g",
|
||||
getAvgCount(i.first), floor(i.second * 1000.0) / 1000.0);
|
||||
o << buffer << std::endl;
|
||||
}
|
||||
return values.size();
|
||||
|
Loading…
Reference in New Issue
Block a user