Skip to content

Commit

Permalink
Improve "After this operation" disk usage messages
Browse files Browse the repository at this point in the history
Resolves: #1598
  • Loading branch information
ppisar authored and jan-kolarik committed Jul 31, 2024
1 parent 00d00c1 commit cd56344
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dnf5/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ static void print_transaction_size_stats(Context & context) {
const auto [size_diff_value, size_diff_unit] = libdnf5::cli::utils::units::to_size(std::abs(size_diff));
if (size_diff >= 0) {
context.print_info(fmt::format(
"After this operation {:.0f} {:s} will be used (install {:.0f} {:s}, remove {:.0f} {:s}).",
"After this operation, {:.0f} {:s} extra will be used (install {:.0f} {:s}, remove {:.0f} {:s}).",
size_diff_value,
size_diff_unit,
install_size_value,
Expand All @@ -823,7 +823,7 @@ static void print_transaction_size_stats(Context & context) {
remove_size_unit));
} else {
context.print_info(fmt::format(
"After this operation {:.0f} {:s} will be freed (install {:.0f} {:s}, remove {:.0f} {:s}).",
"After this operation, {:.0f} {:s} will be freed (install {:.0f} {:s}, remove {:.0f} {:s}).",
size_diff_value,
size_diff_unit,
install_size_value,
Expand Down

0 comments on commit cd56344

Please sign in to comment.