Changeset 255 for trunk/jobmond


Ignore:
Timestamp:
04/27/06 11:56:08 (18 years ago)
Author:
bastiaans
Message:

jobmond/jobmond.py:

  • detect max metric length automaticly for different gmetric versions
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/jobmond/jobmond.py

    r254 r255  
    156156                """
    157157
     158                global METRIC_MAX_VAL_LEN
     159
    158160                for line in os.popen( self.binary + ' --version' ).readlines():
    159161
     
    181183                                               
    182184                                                        incompatible = 1
     185
     186                                                if version_patch < 3:
     187
     188                                                        METRIC_MAX_VAL_LEN = 900
     189
     190                                                elif version_patch >= 3:
     191
     192                                                        METRIC_MAX_VAL_LEN = 1400
    183193
    184194                return incompatible
Note: See TracChangeset for help on using the changeset viewer.