]> git.proxmox.com Git - lxcfs.git/blame - debian/patches/0003-bindings-remove-unused-function.patch
bump version to 2.0.8-2
[lxcfs.git] / debian / patches / 0003-bindings-remove-unused-function.patch
CommitLineData
9b3df637
WB
1From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2From: Christian Brauner <christian.brauner@ubuntu.com>
3Date: Thu, 2 Nov 2017 13:30:03 +0100
4Subject: [PATCH lxcfs] bindings: remove unused function
5
6Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
7---
8 bindings.c | 18 ------------------
9 1 file changed, 18 deletions(-)
10
11diff --git a/bindings.c b/bindings.c
12index cfd386e..cbf05fe 100644
13--- a/bindings.c
14+++ b/bindings.c
15@@ -3591,24 +3591,6 @@ static uint64_t get_reaper_age(pid_t pid)
16 return procage;
17 }
18
19-static uint64_t get_reaper_btime(pid)
20-{
21- int ret;
22- struct sysinfo sys;
23- uint64_t procstart;
24- uint64_t uptime;
25-
26- ret = sysinfo(&sys);
27- if (ret < 0) {
28- lxcfs_debug("%s\n", "failed to retrieve system information");
29- return 0;
30- }
31-
32- uptime = (uint64_t)time(NULL) - (uint64_t)sys.uptime;
33- procstart = get_reaper_start_time_in_sec(pid);
34- return uptime + procstart;
35-}
36-
37 #define CPUALL_MAX_SIZE (BUF_RESERVE_SIZE / 2)
38 static int proc_stat_read(char *buf, size_t size, off_t offset,
39 struct fuse_file_info *fi)
40--
412.11.0
42