comparison container.c @ 3:2cb8a6cbe468

cpuacct: convert per cpu usage from nanoseconds to jiffies
author Louis Opter <louis@dotcloud.com>
date Fri, 31 Dec 2010 20:04:25 +0100
parents 6ce4443e7545
children 8339ab15527d
comparison
equal deleted inserted replaced
2:ba9d8601d5f9 3:2cb8a6cbe468
3 3
4 #include <assert.h> 4 #include <assert.h>
5 #include <dirent.h> 5 #include <dirent.h>
6 #include <err.h> 6 #include <err.h>
7 #include <errno.h> 7 #include <errno.h>
8 #include <stdio.h>
9 #include <stdlib.h> 8 #include <stdlib.h>
10 #include <string.h> 9 #include <string.h>
11 10
12 #include "lxcstats.h" 11 #include "lxcstats.h"
13 #include "_lxcstats.h" 12 #include "_lxcstats.h"
24 char buf[256]; 23 char buf[256];
25 struct lxcst *c; 24 struct lxcst *c;
26 25
27 assert(ct); 26 assert(ct);
28 assert(name); 27 assert(name);
29
30 printf("new container %s\n", name);
31 28
32 c = calloc(1, sizeof(*c)); 29 c = calloc(1, sizeof(*c));
33 if (!c) 30 if (!c)
34 return (NULL); 31 return (NULL);
35 32