table_col_timestamp(tbl, TEST_COL1_TS, test_time);
table_end_row(tbl);
- tbl->column_order[TEST_COL0_SIZE].output_type = UNIT_SIZE_KILOBYTE;
+ tbl->column_order[TEST_COL0_SIZE].output_type = SIZE_UNIT_KILOBYTE;
table_col_size(tbl, TEST_COL0_SIZE, test_size);
table_col_timestamp(tbl, TEST_COL1_TS, test_time);
table_end_row(tbl);
- tbl->column_order[TEST_COL0_SIZE].output_type = UNIT_SIZE_MEGABYTE;
+ tbl->column_order[TEST_COL0_SIZE].output_type = SIZE_UNIT_MEGABYTE;
table_col_size(tbl, TEST_COL0_SIZE, test_size);
table_col_timestamp(tbl, TEST_COL1_TS, test_time);
table_end_row(tbl);
- tbl->column_order[TEST_COL0_SIZE].output_type = UNIT_SIZE_GIGABYTE;
+ tbl->column_order[TEST_COL0_SIZE].output_type = SIZE_UNIT_GIGABYTE;
tbl->column_order[TEST_COL1_TS].output_type = TIMESTAMP_DATETIME;
table_col_size(tbl, TEST_COL0_SIZE, test_size);
table_col_timestamp(tbl, TEST_COL1_TS, test_time);
table_end_row(tbl);
test_size = test_size * 1024LU;
- tbl->column_order[TEST_COL0_SIZE].output_type = UNIT_SIZE_TERABYTE;
+ tbl->column_order[TEST_COL0_SIZE].output_type = SIZE_UNIT_TERABYTE;
tbl->column_order[TEST_COL1_TS].output_type = TIMESTAMP_DATETIME;
table_col_size(tbl, TEST_COL0_SIZE, test_size);
table_col_timestamp(tbl, TEST_COL1_TS, test_time);
static struct table_template test_tbl2 = {
TBL_COLUMNS {
- [TEST_COL0_SIZE] = TBL_COL_SIZE_FMT("size", 15, UNIT_SIZE_BYTE),
+ [TEST_COL0_SIZE] = TBL_COL_SIZE_FMT("size", 15, SIZE_UNIT_BYTE),
[TEST_COL1_TS] = TBL_COL_TIMESTAMP("ts", 20),
TBL_COL_END
},