Skip to content

Commit

Permalink
fix max type
Browse files Browse the repository at this point in the history
  • Loading branch information
kunga committed Feb 27, 2024
1 parent 7fc71ae commit d185174
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ydb/core/tablet_flat/flat_stat_table.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ bool BuildStats(const TSubset& subset, TStats& stats, ui64 rowCountResolution, u
epochs.insert(part->Epoch.ToCounter());
}
// if rowCountResolution = 300, 3-leveled SST, let's move each iterator up to 25 rows
ui64 iterRowCountResolution = rowCountResolution / Max(1lu, epochs.size()) / 4;
ui64 iterDataSizeResolution = dataSizeResolution / Max(1lu, epochs.size()) / 4;
ui64 iterRowCountResolution = rowCountResolution / Max<ui64>(1, epochs.size()) / 4;
ui64 iterDataSizeResolution = dataSizeResolution / Max<ui64>(1, epochs.size()) / 4;

// Make index iterators for all parts
bool started = true;
Expand Down

0 comments on commit d185174

Please sign in to comment.