Changeset 11


Ignore:
Timestamp:
03/22/05 12:57:21 (19 years ago)
Author:
bastiaans
Message:

daemon/togad.py:

Gmetad.conf parsing bugfixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/daemon/togad.py

    r10 r11  
    210210                        if line.count( '"' ) > 1:
    211211
    212                                 source = { }
    213                                 source['name'] = line.split( '"' )[1]
    214 
    215212                                if line.find( 'data_source' ) != -1 and line[0] != '#':
    216213
     214                                        source = { }
     215                                        source['name'] = line.split( '"' )[1]
    217216                                        source_words = line.split( '"' )[2].split( ' ' )
    218217
     
    232231                if not source.has_key( 'interval' ):
    233232                        source['interval'] = 15
     233                        if (DEBUG_LEVEL>8): print 'polling interval for %s defaulted to 15' %(source['name'])
    234234
    235235                self.sources.append( source )
Note: See TracChangeset for help on using the changeset viewer.