Skip to content

Commit

Permalink
Fix remaining disk space message
Browse files Browse the repository at this point in the history
Summary:
Forgot to subtract
{gif:rd435ydv}

Reviewed By: stepancheg

Differential Revision: D61336009

fbshipit-source-id: 00d58eea21816419529ee5166305127846822d59
  • Loading branch information
ezgicicek authored and facebook-github-bot committed Aug 15, 2024
1 parent 5a14373 commit c1a0dc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/buck2_client_ctx/src/subscribers/system_warning.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pub(crate) fn system_memory_exceeded_msg(memory_pressure: &MemoryPressureHigh) -
pub(crate) fn low_disk_space_msg(low_disk_space: &LowDiskSpace) -> String {
format!(
"Low disk space: only {} remaining out of {}{}",
HumanizedBytes::new(low_disk_space.used_disk_space),
HumanizedBytes::new(low_disk_space.total_disk_space - low_disk_space.used_disk_space),
HumanizedBytes::new(low_disk_space.total_disk_space),
if is_open_source() {
""
Expand Down

0 comments on commit c1a0dc7

Please sign in to comment.