Commit 353b012e authored by Klaus Aehlig's avatar Klaus Aehlig

htools: extend Node by CPU speed

Add an additional parameter to the representation of a node
for the relative CPU speed, initially set to 1.
Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
Reviewed-by: default avatarPetr Pudlak <pudlak@google.com>
parent b1a38185
......@@ -111,6 +111,7 @@ data Node = Node
, tDsk :: Double -- ^ Total disk space (MiB)
, fDsk :: Int -- ^ Free disk space (MiB)
, tCpu :: Double -- ^ Total CPU count
, tCpuSpeed :: Double -- ^ Relative CPU speed
, nCpu :: Int -- ^ VCPUs used by the node OS
, uCpu :: Int -- ^ Used VCPU count
, tSpindles :: Int -- ^ Node spindles (spindle_count node parameter,
......@@ -250,6 +251,7 @@ create name_init mem_t_init mem_n_init mem_f_init
, tDsk = dsk_t_init
, fDsk = dsk_f_init
, tCpu = cpu_t_init
, tCpuSpeed = 1
, nCpu = cpu_n_init
, uCpu = cpu_n_init
, tSpindles = spindles_t_init
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment