Fixed bug 10844 - incorrect evaluation of threshold parameter, should use ton() rather than ston().
Merge branch 'bugfix-10844' into release-6.0.1