Ignore:
Timestamp:
02/25/12 14:44:45 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

Various information about the flight is displayed in the status icon's tooltip or menu

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/logger.py

    r30 r31  
    6565        self.message(timestamp, "--- %s ---" % (s,))
    6666        if stage==const.STAGE_END:
    67             totalScore = 100
    68             for (id, score) in self._faults.iteritems():
    69                 totalScore -= score
    70             self.untimedMessage("Score: %.0f" % (totalScore,))
     67            self.untimedMessage("Rating: %.0f" % (self.getRating(),))
    7168       
    7269    def fault(self, faultID, timestamp, what, score):
     
    9087        self.fault(faultID, timestamp, what, Logger.NO_GO_SCORE)
    9188
    92     def getScore(self):
    93         """Get the score of the flight so far."""
     89    def getRating(self):
     90        """Get the rating of the flight so far."""
    9491        totalScore = 100
    9592        for (id, score) in self._faults.iteritems():
Note: See TracChangeset for help on using the changeset viewer.