]> git.proxmox.com Git - pve-container.git/commit
fix #1704: get container uptime with /proc/<pid>/stat
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 19 Mar 2018 15:30:15 +0000 (16:30 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 20 Mar 2018 14:32:18 +0000 (15:32 +0100)
commit80d5611161473542c43267cf442fa1a241296e19
tree9cc166005fb97f15fb407112c415ca33123ee3c5
parent09687674ba42b29d61f107c1c0ae8d2d58c0e166
fix #1704: get container uptime with /proc/<pid>/stat

stat on /proc/<pid> is reset when caches are dropped (e.g. from pveperf)
so get the uptime like lxcfs it does, via /proc/<pid>/stat

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/PVE/LXC.pm