forked from proxmox-mirrors/proxmox
rrd: rustfmt and style fix
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
c66e5432e7
commit
93d42ad488
@ -2,7 +2,7 @@ use serde::{Deserialize, Serialize};
|
|||||||
|
|
||||||
use proxmox_schema::api;
|
use proxmox_schema::api;
|
||||||
|
|
||||||
#[api()]
|
#[api]
|
||||||
#[derive(Copy, Clone, Serialize, Deserialize)]
|
#[derive(Copy, Clone, Serialize, Deserialize)]
|
||||||
#[serde(rename_all = "UPPERCASE")]
|
#[serde(rename_all = "UPPERCASE")]
|
||||||
/// RRD consolidation mode
|
/// RRD consolidation mode
|
||||||
@ -13,7 +13,7 @@ pub enum RRDMode {
|
|||||||
Average,
|
Average,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[api()]
|
#[api]
|
||||||
#[derive(Copy, Clone, Serialize, Deserialize)]
|
#[derive(Copy, Clone, Serialize, Deserialize)]
|
||||||
#[serde(rename_all = "lowercase")]
|
#[serde(rename_all = "lowercase")]
|
||||||
/// RRD time frame
|
/// RRD time frame
|
||||||
|
@ -104,7 +104,7 @@ impl Cache {
|
|||||||
/// * cf=maximum,r=7*86400,n=570 => 10year
|
/// * cf=maximum,r=7*86400,n=570 => 10year
|
||||||
///
|
///
|
||||||
/// The resulting data file size is about 80KB.
|
/// The resulting data file size is about 80KB.
|
||||||
#[deprecated(note="Implement in client code")]
|
#[deprecated(note = "Implement in client code")]
|
||||||
pub fn create_proxmox_backup_default_rrd(dst: DataSourceType) -> Database {
|
pub fn create_proxmox_backup_default_rrd(dst: DataSourceType) -> Database {
|
||||||
use crate::rrd::Archive;
|
use crate::rrd::Archive;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user