package xapi-rrd
RRD library for use with xapi
Install
Dune Dependency
Authors
Maintainers
Sources
xapi-rrd-1.9.0.tbz
sha256=165da683983352b2d951dee5da99f081049a71f14edd2cc67b3161f2c272310b
sha512=0f56ab2c738f76156fceebef16eaac9338f8ebf98e73a825ac5f3766ffccaa8bcb202cdb712d375655e0dfca34e01b9bd7302097775c95fa3a57c0ab9bdd87cb
doc/src/xapi-rrd.unix/rrd_unix.ml.html
Source file rrd_unix.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
(* * Copyright (C) 2006-2009 Citrix Systems Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; version 2.1 only. with the special * exception on linking described in file LICENSE. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. *) (* * RRD Unix module * This module provides Unix tools for dealing with RRDs *) (** * @group Performance Monitoring *) let finally = Xapi_stdext_pervasives.Pervasiveext.finally let with_out_channel_output fd f = let oc = Unix.out_channel_of_descr fd in finally (fun () -> let output = Xmlm.make_output (`Channel oc) in f output ) (fun () -> flush oc) let xml_to_fd rrd fd = with_out_channel_output fd (Rrd.xml_to_output rrd) let json_to_fd rrd fd = let payload = Rrd.json_to_string rrd |> Bytes.unsafe_of_string in let len = Bytes.length payload in Unix.write fd payload 0 len |> ignore let to_fd ?(json = false) rrd fd = (if json then json_to_fd else xml_to_fd) rrd fd
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>