Skip to content

Commit

Permalink
Format slope angle output to three decimal places in AgingScenario
Browse files Browse the repository at this point in the history
  • Loading branch information
janjurca committed Feb 20, 2025
1 parent f3b5620 commit ed03e01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/scenarios/aging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ void AgingScenario::run() {
bar.set_meta("extents", fmt::format("{}", tree.total_extents_count));
bar.set_meta("f-count", fmt::format("{}", tree.all_files.size()));
if (extents_curve.isFitted()) {
bar.set_meta("slope", fmt::format("{}", extents_curve.slopeAngle()));
bar.set_meta("slope", fmt::format("{%.3f}", (extents_curve.slopeAngle())));
}
bar.update(std::chrono::duration_cast<std::chrono::seconds>(std::chrono::high_resolution_clock::now() - start));
if (touched_files.size() > 0) {
Expand Down

0 comments on commit ed03e01

Please sign in to comment.