]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cephfs-top, doc: fix Refresh interval
authorJos Collin <jcollin@redhat.com>
Tue, 22 Jun 2021 11:09:22 +0000 (16:39 +0530)
committerJos Collin <jcollin@redhat.com>
Thu, 11 Nov 2021 08:50:47 +0000 (14:20 +0530)
Signed-off-by: Jos Collin <jcollin@redhat.com>
doc/cephfs/cephfs-top.rst
src/tools/cephfs/top/cephfs-top

index d409c5474529644126a4f4ef2a1c1f0153fb38fc..9751173b7243ed49e0faacc7173502dd68e11239 100644 (file)
@@ -72,11 +72,11 @@ By default, `cephfs-top` connects to cluster name `ceph`. To use a non-default c
 
   $ cephfs-top --cluster <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 <seconds>
 
-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:
 
index 2e35adaabcc4cb22f67b00c68a68d57ecee1c819..ca04ee09ba506f4226d29b84f6261fd7692c965e 100755 (executable)
@@ -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')