]> git.proxmox.com Git - proxmox.git/commitdiff
rrd: fixup examples with the renamed types
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 21 Feb 2024 11:28:09 +0000 (12:28 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 21 Feb 2024 11:28:10 +0000 (12:28 +0100)
Some types were recently renamed but the examples not updated
accordingly.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Fixes: 2f942833672d "rrd: spell out hard to understand abbreviations in public types"
proxmox-rrd/examples/prrd.rs

index 5e098c2ca6dc543445ba1af38bfe7f537440c755..c2a3789b58e895c3443143da93658aba5d0e684c 100644 (file)
@@ -121,7 +121,7 @@ pub fn update_rrd(path: String, time: Option<u64>, value: f64) -> Result<(), Err
                description: "The filename."
            },
            cf: {
-               type: CF,
+               type: AggregationFn,
            },
            resolution: {
                description: "Time resolution",
@@ -226,7 +226,7 @@ pub fn last_update(path: String) -> Result<(), Error> {
    input: {
        properties: {
            dst: {
-               type: DST,
+               type: DataSourceType,
            },
            path: {
                description: "The filename to create."