Package ClusterShell :: Package CLI :: Module Utils
[hide private]
[frames] | no frames]

Module Utils

source code

CLI utility functions

Functions [hide private]
 
human_bi_bytes_unit(value)
Format numerical `value` to display it using human readable unit with binary prefix like (KiB, MiB, GiB, ...).
source code
 
nodeset_cmp(ns1, ns2)
Compare 2 nodesets by their length (we want larger nodeset first) and then by first node.
source code
 
bufnodeset_cmp(bn1, bn2)
Convenience function to compare 2 (buf, nodeset) tuples by their nodeset length (we want larger nodeset first) and then by first node.
source code
Variables [hide private]
  GIBI = 1073741824.0
  KIBI = 1024.0
  MEBI = 1048576.0
  TEBI = 1.09951162778e+12
  __package__ = 'ClusterShell.CLI'