Commit b3fc101f authored by Klaus Aehlig's avatar Klaus Aehlig

htools: add function to set CPU speed

Add a function on nodes modifying the CPU speed
parameter.
Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
Reviewed-by: default avatarPetr Pudlak <pudlak@google.com>
parent 353b012e
......@@ -44,6 +44,7 @@ module Ganeti.HTools.Node
, setMdsk
, setMcpu
, setPolicy
, setCpuSpeed
-- * Tag maps
, addTags
, delTags
......@@ -427,6 +428,10 @@ computeNewPDsk node new_free_sp new_free_dsk =
-- * Update functions
-- | Set the CPU speed
setCpuSpeed :: Node -> Double -> Node
setCpuSpeed n f = n { tCpuSpeed = f }
-- | Sets the free memory.
setFmem :: Node -> Int -> Node
setFmem t new_mem =
......
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