PATH-349: BUGFIX Incorrect ordering of CPU time was only occurring in the case that the number of digitis in one of the CPU times exceeded 3 digits. In this scenario, the thousands comma was being inserted, and this comma was disrupting the comparison method. This fix is simply to use the standard integer formatting rather that the locale specific one.

master
Todd Stinson 2012-03-08 18:01:40 -08:00
parent 125ca3d506
commit 6fb42d7ae8
1 changed files with 1 additions and 3 deletions

View File

@ -473,9 +473,7 @@ void LLFloaterPathfindingCharacters::updateCharactersList()
columns[2]["font"] = "SANSSERIF";
S32 cpuTime = llround(character.getCPUTime());
std::string cpuTimeString;
LLResMgr::getInstance()->getIntegerString(cpuTimeString, cpuTime);
std::string cpuTimeString = llformat("%d", cpuTime);
LLStringUtil::format_map_t string_args;
string_args["[CPU_TIME]"] = cpuTimeString;