Ignore:
Timestamp:
05/03/12 18:27:13 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

Implemented FS time synchronization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/config.py

    r147 r148  
    4141        self._onlineACARS = True
    4242        self._flareTimeFromFS = False
     43        self._syncFSTime = False
    4344       
    4445        self._autoUpdate = True       
     
    145146        if flareTimeFromFS!=self._flareTimeFromFS:
    146147            self._flareTimeFromFS = flareTimeFromFS
     148            self._modified = True
     149
     150    @property
     151    def syncFSTime(self):
     152        """Get whether the simulator's time should be synchronized with the
     153        machine's clock."""
     154        return self._syncFSTime
     155
     156    @syncFSTime.setter
     157    def syncFSTime(self, syncFSTime):
     158        """Set whether the simulator's time should be synchronized with the
     159        machine's clock."""
     160        if syncFSTime!=self._syncFSTime:
     161            self._syncFSTime = syncFSTime
    147162            self._modified = True
    148163
     
    213228                                                 "flareTimeFromFS",
    214229                                                 False)
     230        self._syncFSTime = self._getBoolean(config, "general",
     231                                            "syncFSTime",
     232                                            False)
    215233
    216234        self._messageTypeLevels = {}
     
    249267        config.set("general", "flareTimeFromFS",
    250268                   "yes" if self._flareTimeFromFS else "no")
     269        config.set("general", "syncFSTime",
     270                   "yes" if self._syncFSTime else "no")
    251271
    252272        config.add_section(Config._messageTypesSection)
Note: See TracChangeset for help on using the changeset viewer.