Bug: SessionManager.getConnectionsCount() returns negative values

The loadstat plugin uses SessionManager.getConnectionsCount(false) to return the number of user connections to Openfire. We plot this to a graph. Our graph showed a negative number of connections (which, as you can imagine, struck us as odd :stuck_out_tongue: ). We double checked the values that are outputted by the plugin: they actually contain negative numbers.

As a workaround, Iā€™m now using the getUserSessionsCount() method.

This issue has been marked as JM-1238.