svn commit: r628403 - /lenya/trunk/src/modules-core/monitoring/tools/compress_log.rb

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.