From: Jos Collin Date: Tue, 22 Jun 2021 11:09:22 +0000 (+0530) Subject: cephfs-top, doc: fix Refresh interval X-Git-Tag: v17.1.0~446^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F42110%2Fhead;p=ceph.git cephfs-top, doc: fix Refresh interval Signed-off-by: Jos Collin --- diff --git a/doc/cephfs/cephfs-top.rst b/doc/cephfs/cephfs-top.rst index d409c5474529..9751173b7243 100644 --- a/doc/cephfs/cephfs-top.rst +++ b/doc/cephfs/cephfs-top.rst @@ -72,11 +72,11 @@ By default, `cephfs-top` connects to cluster name `ceph`. To use a non-default c $ cephfs-top --cluster -`cephfs-top` refreshes stats every second by default. To chose a different refresh interval use:: +`cephfs-top` refreshes stats every second by default. To choose a different refresh interval use:: $ cephfs-top -d -Interval should be greater or equal to 0.5 second. Fractional seconds are honoured. +Interval should be greater than or equal to 0.5 seconds. Fractional seconds are honoured. Sample screenshot running `cephfs-top` with 2 clients: diff --git a/src/tools/cephfs/top/cephfs-top b/src/tools/cephfs/top/cephfs-top index 2e35adaabcc4..ca04ee09ba50 100755 --- a/src/tools/cephfs/top/cephfs-top +++ b/src/tools/cephfs/top/cephfs-top @@ -416,8 +416,8 @@ if __name__ == '__main__': def float_greater_than(x): value = float(x) if value < MIN_REFRESH_INTERVAL: - raise argparse.ArgumentTypeError(f'{value} should be greater than ' - f'{MIN_REFRESH_INTERVAL}') + raise argparse.ArgumentTypeError( + f'Refresh interval should be greater than or equal to {MIN_REFRESH_INTERVAL}') return value parser = argparse.ArgumentParser(description='Ceph Filesystem top utility')