modify min_flat to 0
This commit is contained in:
parent
d287b1b34c
commit
270792053e
|
@ -372,7 +372,7 @@ int SZ_compress_args_float(float *oriData, size_t r1, unsigned char* newByteData
|
|||
}
|
||||
|
||||
//cost_end(" sz_first_compress");
|
||||
//show_rate(r1*sizeof(float), *outSize);
|
||||
//show_rate(r1*sizeof(float), tmpOutSize);
|
||||
//
|
||||
// second compress with Call Zstd or Gzip
|
||||
//
|
||||
|
|
|
@ -676,6 +676,8 @@ void test_same_double(int algo){
|
|||
extern char lossyColumns [];
|
||||
extern bool lossyDouble;
|
||||
extern bool lossyFloat;
|
||||
extern double fPrecision;
|
||||
extern char Compressor [];
|
||||
|
||||
//
|
||||
// ----------------- main ----------------------
|
||||
|
@ -683,14 +685,21 @@ extern bool lossyFloat;
|
|||
int main(int argc, char *argv[]) {
|
||||
printf("welcome to use taospack tools v1.3\n");
|
||||
|
||||
printf(" sizeof(int)=%d\n", (int)sizeof(int));
|
||||
printf(" sizeof(long)=%d\n", (int)sizeof(long));
|
||||
printf(" sizeof(short)=%d\n",(int)sizeof(short));
|
||||
//printf(" sizeof(int)=%d\n", (int)sizeof(int));
|
||||
//printf(" sizeof(long)=%d\n", (int)sizeof(long));
|
||||
//printf(" sizeof(short)=%d\n",(int)sizeof(short));
|
||||
|
||||
|
||||
strcpy(lossyColumns, "float|double");
|
||||
bool lossy = true;
|
||||
fPrecision = 1E-5;
|
||||
//strcpy(Compressor, "GZIP_COMPRESSOR");
|
||||
|
||||
tsCompressInit();
|
||||
lossyFloat = lossyDouble = true;
|
||||
|
||||
printf(" fPrecision=%.15f\n",fPrecision);
|
||||
|
||||
|
||||
//
|
||||
//tsCompressExit();
|
||||
|
|
|
@ -33,7 +33,7 @@ extern "C" {
|
|||
#define TSDB_CFG_CTYPE_B_NOT_PRINT 32U // such as password
|
||||
|
||||
#define MAX_FLOAT 100000
|
||||
#define MIN_FLOAT -100000
|
||||
#define MIN_FLOAT 0
|
||||
|
||||
enum {
|
||||
TAOS_CFG_CSTATUS_NONE, // not configured
|
||||
|
|
Loading…
Reference in New Issue