From 6a0dc4a5bcd98f892b9f264f42ba585b78cc1896 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Thu, 16 Jan 2020 11:39:44 +0100 Subject: [PATCH] bump proxmox crate version Signed-off-by: Wolfgang Bumiller --- Cargo.toml | 2 +- debian/control | 6 +++--- src/server/upid.rs | 2 +- src/server/worker_task.rs | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d815b455..56e820bd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,7 +29,7 @@ pam = "0.7" pam-sys = "0.5" percent-encoding = "2.1" pin-utils = "0.1.0-alpha" -proxmox = { version = "0.1.2", features = [ "sortable-macro", "api-macro" ] } +proxmox = { version = "0.1.4", features = [ "sortable-macro", "api-macro" ] } #proxmox = { git = "ssh://gitolite3@proxdev.maurer-it.com/rust/proxmox", version = "0.1.2", features = [ "sortable-macro", "api-macro" ] } #proxmox = { path = "../proxmox/proxmox", features = [ "sortable-macro", "api-macro" ] } regex = "1.2" diff --git a/debian/control b/debian/control index 4e07c93a..1b9dd22f 100644 --- a/debian/control +++ b/debian/control @@ -42,9 +42,9 @@ Build-Depends: bash-completion, librust-pam-sys-0.5+default-dev, librust-percent-encoding-2.1+default-dev, librust-pin-utils-0.1.0+default-dev, - librust-proxmox-0.1.3+default-dev, - librust-proxmox-0.1.3+sortable-macro-dev, - librust-proxmox-0.1.3+api-macro-dev, + librust-proxmox-0.1.4+default-dev, + librust-proxmox-0.1.4+sortable-macro-dev, + librust-proxmox-0.1.4+api-macro-dev, librust-regex-1.2+default-dev, librust-rustyline-5.0.5+default-dev, librust-serde-1.0+default-dev, diff --git a/src/server/upid.rs b/src/server/upid.rs index d4a64c24..6dc68fcb 100644 --- a/src/server/upid.rs +++ b/src/server/upid.rs @@ -62,7 +62,7 @@ impl UPID { Ok(UPID { pid, - pstart: procfs::PidStat::read_for_pid(nix::unistd::Pid::from_raw(pid))?.starttime, + pstart: procfs::PidStat::read_from_pid(nix::unistd::Pid::from_raw(pid))?.starttime, starttime: Local::now().timestamp(), task_id, worker_type: worker_type.to_owned(), diff --git a/src/server/worker_task.rs b/src/server/worker_task.rs index c5009ff5..6183cae3 100644 --- a/src/server/worker_task.rs +++ b/src/server/worker_task.rs @@ -37,7 +37,7 @@ lazy_static! { static ref WORKER_TASK_LIST: Mutex>> = Mutex::new(HashMap::new()); static ref MY_PID: i32 = unsafe { libc::getpid() }; - static ref MY_PID_PSTART: u64 = procfs::PidStat::read_for_pid(Pid::from_raw(*MY_PID)) + static ref MY_PID_PSTART: u64 = procfs::PidStat::read_from_pid(Pid::from_raw(*MY_PID)) .unwrap() .starttime; }