Fixed query output not reporting float values

This commit is contained in:
Deon George 2015-09-22 23:27:24 +10:00
parent c573610769
commit d121df3dc1
2 changed files with 3 additions and 5 deletions

View File

@ -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) {

View File

@ -1,4 +1,4 @@
#define _TSMPIPE_VERSION "1.6.2"
#define _TSMPIPE_VERSION "1.6.3"
#define ACTION_INFO 1
#define ACTION_CREATE 2