From d121df3dc19e2a8e1b7f61444baa880e40fd5b00 Mon Sep 17 00:00:00 2001 From: Deon George Date: Tue, 22 Sep 2015 23:27:24 +1000 Subject: [PATCH] Fixed query output not reporting float values --- lib/dsmobjects.c | 6 ++---- tsmpipe.h | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/dsmobjects.c b/lib/dsmobjects.c index 75f87f2..971ebb4 100644 --- a/lib/dsmobjects.c +++ b/lib/dsmobjects.c @@ -153,16 +153,14 @@ char *dsmObjnameToStr(dsmObjName objName) { } double dsmSizeToNum(dsStruct64_t dsStruct64,dsBool_t inMB) { - unsigned long long filesize=0; - - filesize = 0x00; + unsigned long long filesize; filesize = dsStruct64.hi; filesize <<= 32; filesize |= dsStruct64.lo; // Return number in MB - return (float) inMB ? filesize/1024/1024 : filesize; + return inMB ? (float)filesize/1024/1024 : filesize; } void debugLog(int level, _IO_FILE *output, char *message, int die) { diff --git a/tsmpipe.h b/tsmpipe.h index c57745e..f0b7e26 100644 --- a/tsmpipe.h +++ b/tsmpipe.h @@ -1,4 +1,4 @@ -#define _TSMPIPE_VERSION "1.6.2" +#define _TSMPIPE_VERSION "1.6.3" #define ACTION_INFO 1 #define ACTION_CREATE 2