FIRE-1291, Make slplugin sleep when idle. Patch by Satomi Ahn

master
Arrehn 2011-08-11 08:50:02 -04:00
parent f8739b3f6d
commit 3d8bfc69bd
1 changed files with 3 additions and 2 deletions

View File

@ -729,12 +729,13 @@ void LLSDXMLParser::Impl::endElementHandler(const XML_Char* name)
case ELEMENT_REAL:
{
F64 r;
// SA: it seems sscanf does not always give expected result (for instance 0.009999999776482582092285156 is decoded as 0 under Linux)
/* F64 r;
if ( sscanf(mCurrentContent.c_str(), "%lf", &r ) == 1 )
{ // See if sscanf works - it's faster
value = r;
}
else
else*/
{
value = LLSD(mCurrentContent).asReal();
}