OSDN Git Service

It deals with the alert message in c source.
authorNIWA Hideyuki <niwa.hideyuki@jp.fujitsu.com>
Sun, 26 Oct 2014 02:25:27 +0000 (11:25 +0900)
committerNIWA Hideyuki <niwa.hideyuki@jp.fujitsu.com>
Sun, 26 Oct 2014 02:25:27 +0000 (11:25 +0900)
lxcf/src/lxcf-resource1.c
lxcf/src/lxcf-sched.c

index cc8cd2c..1bc921f 100644 (file)
@@ -636,7 +636,7 @@ int show(FILE* fd, char *name)
 {
        long int cpurate;
        long int cpuquota;
-       long int cpuperiod;
+       long int cpuperiod = 100000;
        char buf[1024];
 
 //#ifdef __RHEL7__
index 0d8ac4f..7e8ab52 100644 (file)
@@ -384,10 +384,11 @@ char *get_job(void)
 void launch_job(void)
 {
        char *s;
-       int r, i;
+       int i;
 
        while (1) {
                // A broken container is found, and it erases it.
+//             int r;
 //             r = system("/usr/lib64/lxcf/lxcf-collection-broken-container");
 //             if (r == -1) {
 //                     printf("error: system function\n");