Switch LispConfig double comparison to relative error
Switch LispConfig double comparison to relative error

This further improves the comparison for "non-trivial"
numbers. Without this patch, there are still cases where the absolute
error is too big, and we need to switch to relative error.

Concept has been taken from
<http://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/>.

Signed-off-by: Iustin Pop <acf83a5274f31a43af6b914614365999469c1a31@google.com>
Reviewed-by: Guido Trotter <f62ca4d5358bdaeef0e50e57f9f7e231de63727e@google.com>

leshchevds/ganeti,ganeti/ganeti,mbakke/ganeti,mbakke/ganeti,bitemyapp/ganeti,apyrgio/ganeti,onponomarev/ganeti,grnet/snf-ganeti,yiannist/ganeti,apyrgio/snf-ganeti,ganeti/ganeti,ganeti-github-testing/ganeti-test-1,onponomarev/ganeti,ganeti/ganeti,dimara/ganeti,yiannist/ganeti,apyrgio/ganeti,andir/ganeti,mbakke/ganeti,andir/ganeti,grnet/snf-ganeti,dimara/ganeti,apyrgio/snf-ganeti,yiannist/ganeti,leshchevds/ganeti,bitemyapp/ganeti,ganeti-github-testing/ganeti-test-1,andir/ganeti,leshchevds/ganeti