Inverting content size prefs bool

This commit is contained in:
Bimba Shrestha
2020-03-09 14:16:10 -05:00
parent 03ee18d9c5
commit 6d8e761ba3
3 changed files with 9 additions and 9 deletions
+4 -4
View File
@@ -323,7 +323,7 @@ struct FIO_prefs_s {
int excludeCompressedFiles;
int patchFromMode;
int noContentSize;
int contentSize;
};
@@ -495,9 +495,9 @@ void FIO_setPatchFromMode(FIO_prefs_t* const prefs, int value)
prefs->patchFromMode = value != 0;
}
void FIO_setNoContentSize(FIO_prefs_t* const prefs, int value)
void FIO_setContentSize(FIO_prefs_t* const prefs, int value)
{
prefs->noContentSize = value != 0;
prefs->contentSize = value != 0;
}
/*-*************************************
@@ -1342,7 +1342,7 @@ FIO_compressFilename_internal(FIO_prefs_t* const prefs,
clock_t const cpuStart = clock();
U64 readsize = 0;
U64 compressedfilesize = 0;
U64 const fileSize = !prefs->noContentSize ? UTIL_getFileSize(srcFileName) : UTIL_FILESIZE_UNKNOWN;
U64 const fileSize = prefs->contentSize ? UTIL_getFileSize(srcFileName) : UTIL_FILESIZE_UNKNOWN;
DISPLAYLEVEL(5, "%s: %u bytes \n", srcFileName, (unsigned)fileSize);
/* compression format selection */