]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Fix handling of cumulative system time
authorStefan Fritsch <sf@apache.org>
Mon, 13 Jun 2011 16:49:48 +0000 (16:49 +0000)
committerStefan Fritsch <sf@apache.org>
Mon, 13 Jun 2011 16:49:48 +0000 (16:49 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1135170 13f79535-47bb-0310-9956-ffa450edef68

modules/generators/mod_status.c

index 6f143340e1b9979ae4daa996f0d3dd74f8aca90b..7c8b0d13faa66a8522039c9610b5347a0313c142 100644 (file)
@@ -333,7 +333,7 @@ static int status_handler(request_rec *r)
                         proc_tu += tmp_tu;
                         proc_ts += tmp_ts;
                         proc_tcu += tmp_tcu;
-                        proc_tcs += proc_tcs;
+                        proc_tcs += tmp_tcs;
                     }
                     else {
                         if (tmp_tu > proc_tu ||
@@ -343,7 +343,7 @@ static int status_handler(request_rec *r)
                             proc_tu = tmp_tu;
                             proc_ts = tmp_ts;
                             proc_tcu = tmp_tcu;
-                            proc_tcs = proc_tcs;
+                            proc_tcs = tmp_tcs;
                         }
                     }
 #endif /* HAVE_TIMES */