Fixed query output not reporting float values
This commit is contained in:
parent
c573610769
commit
d121df3dc1
@ -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) {
|
||||
|
Reference in New Issue
Block a user