From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 6EB041381F3 for ; Tue, 30 Jul 2013 18:40:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A275BE09C5; Tue, 30 Jul 2013 18:40:26 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 31054E09AA for ; Tue, 30 Jul 2013 18:40:26 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 352CA33E9AC for ; Tue, 30 Jul 2013 18:40:25 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 51D57E5465 for ; Tue, 30 Jul 2013 18:40:22 +0000 (UTC) From: "André Erdmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "André Erdmann" Message-ID: <1375200300.0ae9b1ffad16a71b325c29862d139e0ebf20dcbc.dywi@gentoo> Subject: [gentoo-commits] proj/R_overlay:master commit in: roverlay/config/ X-VCS-Repository: proj/R_overlay X-VCS-Files: roverlay/config/const.py roverlay/config/defconfig.py roverlay/config/entrymap.py X-VCS-Directories: roverlay/config/ X-VCS-Committer: dywi X-VCS-Committer-Name: André Erdmann X-VCS-Revision: 0ae9b1ffad16a71b325c29862d139e0ebf20dcbc X-VCS-Branch: master Date: Tue, 30 Jul 2013 18:40:22 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 007d4b5a-7100-4fbf-afd7-7bfc05c1ad0e X-Archives-Hash: 5dc1dd99e203d7621a201f83b9c5b50c commit: 0ae9b1ffad16a71b325c29862d139e0ebf20dcbc Author: André Erdmann mailerd de> AuthorDate: Tue Jul 30 16:05:00 2013 +0000 Commit: André Erdmann mailerd de> CommitDate: Tue Jul 30 16:05:00 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=0ae9b1ff roverlay/config: STATS_INTERVAL Controls the time interval of the RRD. --- roverlay/config/const.py | 4 ++++ roverlay/config/defconfig.py | 1 - roverlay/config/entrymap.py | 8 ++++++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/roverlay/config/const.py b/roverlay/config/const.py index b0a0b6e..2dc79c5 100644 --- a/roverlay/config/const.py +++ b/roverlay/config/const.py @@ -99,6 +99,10 @@ _CONSTANTS = dict ( ) ), ), + + RRD_DB = dict ( + step = 7200, + ), ) def lookup ( key, fallback_value=None ): diff --git a/roverlay/config/defconfig.py b/roverlay/config/defconfig.py index 9e0f336..47d67d0 100644 --- a/roverlay/config/defconfig.py +++ b/roverlay/config/defconfig.py @@ -208,7 +208,6 @@ class RoverlayConfigCreation ( object ): option.set_value ( svalue ) else: raise ConfigValueError ( key, value ) - pass else: raise ConfigOptionMissing ( key ) diff --git a/roverlay/config/entrymap.py b/roverlay/config/entrymap.py index b6be4ab..af1d338 100644 --- a/roverlay/config/entrymap.py +++ b/roverlay/config/entrymap.py @@ -545,6 +545,14 @@ CONFIG_ENTRY_MAP = dict ( description = 'stats database file', ), + stats_interval = dict ( + path = [ 'RRD_DB', 'step', ], + value_type = 'int', + description = ( + 'database update interval (only used for creating new database files)' + ), + ), + # --- other )