Skip to content
Snippets Groups Projects
Commit c9109851 authored by Henning Glawe's avatar Henning Glawe
Browse files

don't print quota lines with missing data

parent b1bd3f1d
No related branches found
No related tags found
No related merge requests found
...@@ -95,6 +95,8 @@ def df_mountpoint(path: pathlib.Path) -> Tuple[int, int, int]: ...@@ -95,6 +95,8 @@ def df_mountpoint(path: pathlib.Path) -> Tuple[int, int, int]:
def print_quota_line(location, size, used, avail, rel=None, raw=False): def print_quota_line(location, size, used, avail, rel=None, raw=False):
format_string = "{:20} {:>14} {:>14} {:>14.4}%\n" format_string = "{:20} {:>14} {:>14} {:>14.4}%\n"
if size is None:
return
if rel is None: if rel is None:
rel = 100.0 * used / size rel = 100.0 * used / size
if not raw: if not raw:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment