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) {
|
double dsmSizeToNum(dsStruct64_t dsStruct64,dsBool_t inMB) {
|
||||||
unsigned long long filesize=0;
|
unsigned long long filesize;
|
||||||
|
|
||||||
filesize = 0x00;
|
|
||||||
|
|
||||||
filesize = dsStruct64.hi;
|
filesize = dsStruct64.hi;
|
||||||
filesize <<= 32;
|
filesize <<= 32;
|
||||||
filesize |= dsStruct64.lo;
|
filesize |= dsStruct64.lo;
|
||||||
|
|
||||||
// Return number in MB
|
// 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) {
|
void debugLog(int level, _IO_FILE *output, char *message, int die) {
|
||||||
|
Reference in New Issue
Block a user