From 066fc1a4b3422997a81702d4fbbe49c358fb4b74 Mon Sep 17 00:00:00 2001 From: UpstreamData Date: Wed, 11 May 2022 08:43:32 -0600 Subject: [PATCH] changed Temperature to Temp and added more spacing to pool user --- tools/cfg_util/layout.py | 6 +++--- tools/cfg_util/tables.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/cfg_util/layout.py b/tools/cfg_util/layout.py index 84ba4e41..424386c0 100644 --- a/tools/cfg_util/layout.py +++ b/tools/cfg_util/layout.py @@ -86,7 +86,7 @@ TABLE_HEADERS = { "Model", "Hostname", "Hashrate", - "Temperature", + "Temp", "Pool User", "Wattage", ], @@ -158,8 +158,8 @@ IP_COL_WIDTH = 17 MODEL_COL_WIDTH = 15 HOST_COL_WIDTH = 15 HASHRATE_COL_WIDTH = 12 -TEMP_COL_WIDTH = 14 -USER_COL_WIDTH = 27 +TEMP_COL_WIDTH = 8 +USER_COL_WIDTH = 33 WATTAGE_COL_WIDTH = 10 SPLIT_COL_WIDTH = 8 SCAN_COL_WIDTHS = [ diff --git a/tools/cfg_util/tables.py b/tools/cfg_util/tables.py index 1fa74f67..751ee8c5 100644 --- a/tools/cfg_util/tables.py +++ b/tools/cfg_util/tables.py @@ -185,7 +185,7 @@ class TableManager(metaclass=Singleton): self.data[data_key]["Hashrate"].replace(" ", "").replace("TH/s", "") ) - if self.sort_key in ["Wattage", "Temperature"]: + if self.sort_key in ["Wattage", "Temp"]: if isinstance(self.data[data_key][self.sort_key], str): return -300