Revision 0c860cff

b/Ganeti/HTools/Cluster.hs
177 177
detailedCVNames :: [String]
178 178
detailedCVNames = [ "free_mem_cv"
179 179
                  , "free_disk_cv"
180
                  , "n1_score"
180
                  , "n1_cnt"
181 181
                  , "reserved_mem_cv"
182 182
                  , "offline_all_cnt"
183 183
                  , "offline_pri_cnt"
......
202 202
        -- metric: disk covariance
203 203
        dsk_cv = varianceCoeff dsk_l
204 204
        n1_l = length $ filter Node.failN1 nodes
205
        -- metric: ratio of failN1 nodes
206
        n1_score = fromIntegral n1_l /
207
                   fromIntegral (length nodes)::Double
205
        -- metric: count of failN1 nodes
206
        n1_score = fromIntegral n1_l::Double
208 207
        res_l = map Node.pRem nodes
209 208
        -- metric: reserved memory covariance
210 209
        res_cv = varianceCoeff res_l

Also available in: Unified diff