Skip to content

Commit

Permalink
Use KB instead of kB
Browse files Browse the repository at this point in the history
kB means 1000 bytes, KB means 1024 bytes (ref. Wikipedia)
  • Loading branch information
berland committed Sep 3, 2024
1 parent 89d13ad commit 57d4c0f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/ert/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,9 +635,9 @@ def log_process_usage() -> None:
"Socket messages Received": usage.ru_msgrcv,
"Signals received": usage.ru_nsignals,
"Swaps": usage.ru_nswap,
"Peak memory use (kB)": maxrss,
"Peak memory use (KB)": maxrss,
}
logger.info(f"Peak memory use: {maxrss} kB", extra=usage_dict)
logger.info(f"Peak memory use: {maxrss} KB", extra=usage_dict)
except Exception as exc:
logger.warning(
f"Exception while trying to log ERT process resource usage: {exc}"
Expand Down
2 changes: 1 addition & 1 deletion src/ert/shared/status/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@


def byte_with_unit(byte_count: float) -> str:
suffixes = ["B", "kB", "MB", "GB", "TB", "PB"]
suffixes = ["B", "KB", "MB", "GB", "TB", "PB"]
power = float(10**3)

i = 0
Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/gui/simulation/test_run_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ def test_run_dialog_memory_usage_showing(

max_memory_column_proxy_index = job_model.index(job_number, max_memory_column_index)
max_memory_value = job_model.data(max_memory_column_proxy_index, Qt.DisplayRole)
assert max_memory_value == "60.00 kB"
assert max_memory_value == "60.00 KB"


@pytest.mark.usefixtures("use_tmpdir")
Expand Down

0 comments on commit 57d4c0f

Please sign in to comment.