You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2008/02/17 02:31:09 UTC
svn commit: r628403 -
/lenya/trunk/src/modules-core/monitoring/tools/compress_log.rb
Author: andreas
Date: Sat Feb 16 17:31:08 2008
New Revision: 628403
URL: http://svn.apache.org/viewvc?rev=628403&view=rev
Log:
Added license header and comment to ruby script.
Modified:
lenya/trunk/src/modules-core/monitoring/tools/compress_log.rb
Modified: lenya/trunk/src/modules-core/monitoring/tools/compress_log.rb
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules-core/monitoring/tools/compress_log.rb?rev=628403&r1=628402&r2=628403&view=diff
==============================================================================
--- lenya/trunk/src/modules-core/monitoring/tools/compress_log.rb (original)
+++ lenya/trunk/src/modules-core/monitoring/tools/compress_log.rb Sat Feb 16 17:31:08 2008
@@ -1,5 +1,25 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+#
+# The script computes the maximum for each minute interval and outputs only a single
+# log entry for each minute. This way the performance of the SVG diagram generation
+# can be improved.
+#
+
def compress_log(logfile_name)
- puts "Hello"
File.open(logfile_name, "r") do |logfile|
max = 0
prev_minute = 0
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org