update to first proxmox crate split

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller
2021-10-08 11:19:37 +02:00
parent e3f3359c86
commit 6ef1b649d9
265 changed files with 880 additions and 1036 deletions

View File

@ -10,6 +10,7 @@ anyhow = "1.0"
bitflags = "1.2.1"
log = "0.4"
proxmox = { version = "0.14.0", features = ["api-macro"] }
proxmox = { version = "0.14.0" }
proxmox-time = "1"
proxmox-rrd-api-types = { path = "../proxmox-rrd-api-types" }

View File

@ -62,7 +62,7 @@ impl RRDCache {
create_path(path.parent().unwrap(), Some(self.dir_options.clone()), Some(self.file_options.clone()))?;
let mut map = self.cache.write().unwrap();
let now = proxmox::tools::time::epoch_f64();
let now = proxmox_time::epoch_f64();
if let Some(rrd) = map.get_mut(rel_path) {
rrd.update(now, value);