提交 27079205 编写于 作者: T tickduan

modify min_flat to 0

上级 d287b1b3
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册