File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -73,9 +73,10 @@ class MyFlushBlockPolicy : public FlushBlockPolicy {
73
73
auto total = compressed_count + rejected_count + bypassed_count;
74
74
int rejection_percentage, bypassed_percentage, compressed_percentage;
75
75
if (total != 0 ) {
76
- rejection_percentage = rejected_count * 100 / total;
77
- bypassed_percentage = bypassed_count * 100 / total;
78
- compressed_percentage = compressed_count * 100 / total;
76
+ rejection_percentage = static_cast <int >(rejected_count * 100 / total);
77
+ bypassed_percentage = static_cast <int >(bypassed_count * 100 / total);
78
+ compressed_percentage =
79
+ static_cast <int >(compressed_count * 100 / total);
79
80
}
80
81
// use mulitple of 10 to get correct assertion
81
82
switch (multiple_of_10) {
You can’t perform that action at this time.
0 commit comments