We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e0b0a89 + a7610a9 commit d6d697fCopy full SHA for d6d697f
ocaml/rrdd/rrdd_main.ml
@@ -240,6 +240,8 @@ let update_memory xc doms =
240
)) memory_target_opt
241
in
242
let other_ds =
243
+ if domid = 0 then None
244
+ else begin
245
try
246
let memfree_xs_key = Printf.sprintf "/local/domain/%d/data/meminfo_free" domid in
247
let mem_free = with_xs (fun xs -> Int64.of_string (xs.Xs.read memfree_xs_key)) in
@@ -250,6 +252,7 @@ let update_memory xc doms =
250
252
~value:(Rrd.VT_Int64 mem_free) ~ty:Rrd.Gauge ~min:0.0 ~default:true ()
251
253
)
254
with _ -> None
255
+ end
256
257
main_mem_ds :: (Opt.to_list other_ds) @ (Opt.to_list mem_target_ds) @ acc
258
) [] doms
0 commit comments