From: erickson Date: Wed, 12 Mar 2008 21:12:34 +0000 (+0000) Subject: updated srfsh math_bench return value since json no longer returns the extra 0s X-Git-Tag: osrf_rel_2_0_1~683 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=3d69474adb6962791e62e2263a0dae9cdd23b0f3;p=OpenSRF.git updated srfsh math_bench return value since json no longer returns the extra 0s git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1284 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/srfsh/srfsh.c b/src/srfsh/srfsh.c index 68bfcd5..97e4889 100644 --- a/src/srfsh/srfsh.c +++ b/src/srfsh/srfsh.c @@ -842,7 +842,7 @@ static int do_math( int count, int style ) { jsonObjectPush(params,jsonNewObject("2")); char* methods[] = { "add", "sub", "mult", "div" }; - char* answers[] = { "3", "-1", "2", "0.500000" }; + char* answers[] = { "3", "-1", "2", "0.5" }; float times[ count * 4 ]; memset(times, 0, sizeof(times));