Skip to content

Commit 92e1d81

Browse files
committed
Cleaned up some display messaging
1 parent 711f71a commit 92e1d81

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

cratedb_toolkit/admin/xmover/analysis/shard.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@ def report(
873873
start_time = datetime.now()
874874
self.refresh_data()
875875

876-
console.print(Panel.fit("[bold blue]Shard heat analyzer[/bold blue]"))
876+
console.print(Panel.fit("[bold blue]CrateDB Shard heat analyzer[/bold blue]"))
877877

878878
while True:
879879
sleep(interval_in_seconds)
@@ -939,7 +939,7 @@ def _display_shards_table_rows(
939939
format_size(shard.size_gb),
940940
format_size(seq_delta),
941941
str(seq_delta),
942-
str(seq_delta / elapsed_time_s),
942+
"{:.3f}".format(seq_delta / elapsed_time_s),
943943
)
944944

945945
def _get_shard_compound_id(self, shard: ShardInfo) -> str:

cratedb_toolkit/admin/xmover/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
from rich.panel import Panel
1414

1515
from cratedb_toolkit.admin.xmover.analysis.shard import (
16+
ActiveShardMonitor,
1617
ShardAnalyzer,
1718
ShardHeatReporter,
1819
ShardHeatSortByChoice,
1920
ShardReporter,
20-
ActiveShardMonitor,
2121
)
2222
from cratedb_toolkit.admin.xmover.analysis.table import DistributionAnalyzer
2323
from cratedb_toolkit.admin.xmover.analysis.zone import ZoneReport

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,13 +325,13 @@ lint.extend-ignore = [
325325
]
326326

327327
lint.per-file-ignores."cratedb_toolkit/admin/xmover/analysis/shard.py" = [ "T201" ] # Allow `print`
328-
lint.per-file-ignores."tests/admin/*" = [ "T201" ] # Allow use of `print`.
329328
lint.per-file-ignores."cratedb_toolkit/retention/cli.py" = [ "T201" ] # Allow `print`
330329
lint.per-file-ignores."cratedb_toolkit/sqlalchemy/__init__.py" = [ "F401" ] # Allow `module´ imported but unused
331330
lint.per-file-ignores."doc/conf.py" = [ "A001", "ERA001" ]
332331
lint.per-file-ignores."examples/*" = [ "ERA001", "F401", "T201", "T203" ] # Allow `print` and `pprint`
333332
lint.per-file-ignores."tests/*" = [ "S101" ] # Allow use of `assert`, and `print`.
334333
lint.per-file-ignores."tests/adapter/test_rockset.py" = [ "E402" ]
334+
lint.per-file-ignores."tests/admin/*" = [ "T201" ] # Allow use of `print`.
335335
lint.per-file-ignores."tests/info/test_http.py" = [ "E402" ]
336336

337337
[tool.pytest.ini_options]

0 commit comments

Comments
 (0)