Skip to content

Commit

Permalink
fix issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanhaoji2 committed Feb 27, 2025
1 parent 1d74a23 commit ba1ec96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/disk_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,7 @@ void create_disk_layout(const std::string base_file, const std::string mem_index

if (append_reorder_data)
{
n_data_nodes_per_sector = defaults::SECTOR_LEN / (ndims_reorder_file * sizeof(float));
n_data_nodes_per_sector = defaults::SECTOR_LEN / (ndims_reorder_file * sizeof(T));
n_reorder_sectors = ROUND_UP(npts_64, n_data_nodes_per_sector) / n_data_nodes_per_sector;
}
uint64_t disk_index_file_size = (n_sectors + n_reorder_sectors + 1) * defaults::SECTOR_LEN;
Expand Down

0 comments on commit ba1ec96

Please sign in to comment.