loadavg/loadavg — pull request #11 by IBBoard (2014-07-26 10:23:23+00:00)
Title: Overload fix

There's an issue with some of the overload checks due to string comparison vs numeric comparison.

String comparisons sort 1, 10, 11, 2, 3,….

Numeric comparisons sort 1, 2, 3, 10, 11 …

number_format() returns a string, and the settings are pulled from config files and are strings. Doing maths on the string or explicitly casting it as a number makes PHP treat ">" as a numeric comparison.

Note: The Apache section hasn't been tested (I have issues where my security/server config settings prevent the logger recording the data) but it should be okay.