]> git.pld-linux.org Git - packages/util-vserver.git/commitdiff
- up to 2933 auto/th/util-vserver-0_30_216-1_pre2933_1
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 11 Feb 2011 10:44:35 +0000 (10:44 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    util-vserver-usersystime.patch -> 1.4
    util-vserver.spec -> 1.277

util-vserver-usersystime.patch [deleted file]
util-vserver.spec

diff --git a/util-vserver-usersystime.patch b/util-vserver-usersystime.patch
deleted file mode 100644 (file)
index c68fb86..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
---- util-vserver-0.30.216-pre2926/src/vserver-stat.c   2010-12-02 16:30:12.000000000 +0100
-+++ util-vserver-0.30.216-pre2926.new/src/vserver-stat.c       2011-01-18 20:32:23.465389530 +0100
-@@ -309,6 +309,7 @@
-     unsigned long long                rss;
-     char                      *endptr;
-     size_t                    len;
-+    uint64_t                  stime_total, utime_total;
-     if (vc_virt_stat(xid, &vstat) == -1) {
-       perror("vc_virt_stat()");
-@@ -402,6 +403,24 @@
-       return;
-     }
-+    strcpy(filename, cgroup);
-+    strcpy(filename + cgroup_len, "/cpuacct.stat");
-+
-+    if ((fd = open(filename, O_RDONLY)) == -1) {
-+      perror("open(cpuacct.stat)");
-+      return;
-+    }
-+    if (read(fd, buf, sizeof(buf)) == -1) {
-+      perror("read(cpuacct.stat)");
-+      return;
-+    }
-+    close(fd);
-+
-+    if (sscanf(buf, "user %lu\nsystem %lu\n", &utime_total, &stime_total) != 2) {
-+      perror("sscanf(cpuacct.stat)");
-+      return;
-+    }
-+
-     res                       = Vector_insert(vec, &xid, cmpData);
-     res->xid          = xid;
-@@ -409,18 +428,8 @@
-     res->VmRSS_total  = rss / 4096;
-     res->start_time_oldest= getUptime() - vstat.uptime/1000000;
--    res->utime_total  = 0;
--    res->stime_total  = 0;
--    // XXX: arbitrary CPU limit.
--    for (cpu = 0; cpu < 1024; cpu++) {
--      sched.cpu_id = cpu;
--      sched.bucket_id = 0;
--      if (vc_sched_info(xid, &sched) == -1)
--        break;
--
--      res->utime_total        += sched.user_msec;
--      res->stime_total        += sched.sys_msec;
--    }
-+    res->utime_total  = utime_total * 1000 / sysconf(_SC_CLK_TCK) /* USER_HZ */;
-+    res->stime_total  = stime_total * 1000 / sysconf(_SC_CLK_TCK) /* USER_HZ */;
-   }
-   
-   res->VmSize_total   += process->VmSize;
-
index 3f27ee8e9f7351b0904e14a3c2e674f21f207c69..dbb1fd054f0744a4a3dc3cf21cc02bb7a13438c2 100644 (file)
@@ -18,8 +18,8 @@
 %undefine      with_doc
 %endif
 
-%define                snap    pre2926
-%define                rel     7
+%define                snap    pre2933
+%define                rel     1
 Summary:       Linux virtual server utilities
 Summary(pl.UTF-8):     Narzędzia dla linuksowych serwerów wirtualnych
 Name:          util-vserver
@@ -28,7 +28,7 @@ Release:      1.%{snap}.%{rel}
 License:       GPL
 Group:         Applications/System
 Source0:       http://people.linux-vserver.org/~dhozac/t/uv-testing/%{name}-%{version}-%{snap}.tar.bz2
-# Source0-md5: 236c0ef54b94f8c116afaf7b78396a58
+# Source0-md5: 478a699a154c2823ad2606c50b5f55e4
 Source1:       vprocunhide.init
 Source2:       vservers.init
 Source3:       vservers-legacy.init
@@ -73,7 +73,6 @@ Patch21:      %{name}-bash-wrapper.patch
 Patch22:       %{name}-pivot-root-ugly-hack.patch
 Patch24:       vunify-more-exclude.patch
 Patch25:       stat.patch
-Patch26:       %{name}-usersystime.patch
 URL:           http://savannah.nongnu.org/projects/util-vserver/
 BuildRequires: autoconf
 BuildRequires: automake >= 1.9
@@ -403,7 +402,6 @@ Szablon do tworzenia VServerów dla dystrybucji SuSE 9.1.
 %patch22 -p1
 %patch24 -p1
 %patch25 -p1
-%patch26 -p1
 
 install %{SOURCE9} package-management.txt
 
This page took 0.11333 seconds and 4 git commands to generate.