Changeset 198 for trunk/daemon
- Timestamp:
- 09/21/05 16:29:10 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/daemon/jobarchived.py
r196 r198 13 13 import threading 14 14 import random 15 import re 15 16 from types import * 16 17 import DBClass … … 71 72 # 72 73 ARCHIVE_HOURS_PER_RRD = 12 74 75 # Which metrics to exclude from archiving 76 # NOTE: This can be a regexp or a string 77 # 78 ARCHIVE_EXCLUDE_METRICS = [ "^Temp_.*_.*", ".*_Temp_.*", ".*_RPM_.*", ".*_Battery_.*" ] 73 79 74 80 # Toga's SQL dbase to use … … 645 651 646 652 type = attrs.get( 'TYPE', "" ) 647 648 if type not in UNSUPPORTED_ARCHIVE_TYPES: 653 654 exclude_metric = False 655 656 for ex_metricstr in ARCHIVE_EXCLUDE_METRICS: 657 658 orig_name = attrs.get( 'NAME', "" ) 659 660 if string.lower( orig_name ) == string.lower( ex_metricstr ): 661 662 exclude_metric = True 663 664 elif re.match( ex_metricstr, orig_name ): 665 666 exclude_metric = True 667 668 if type not in UNSUPPORTED_ARCHIVE_TYPES and not exclude_metric: 649 669 650 670 myMetric = { }
Note: See TracChangeset
for help on using the changeset viewer.