]>
Commit | Line | Data |
---|---|---|
9b3df637 WB |
1 | From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 |
2 | From: Christian Brauner <christian.brauner@ubuntu.com> | |
3 | Date: Thu, 2 Nov 2017 13:30:03 +0100 | |
4 | Subject: [PATCH lxcfs] bindings: remove unused function | |
5 | ||
6 | Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com> | |
7 | --- | |
8 | bindings.c | 18 ------------------ | |
9 | 1 file changed, 18 deletions(-) | |
10 | ||
11 | diff --git a/bindings.c b/bindings.c | |
12 | index 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 | -- | |
41 | 2.11.0 | |
42 |