Changeset 2793 for pykota/trunk

Show
Ignore:
Timestamp:
03/06/06 11:36:15 (19 years ago)
Author:
jerome
Message:

Fixed a potential division by zero error.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/tool.py

    r2788 r2793  
    9494        self.number = 0 
    9595        self.size = size 
    96         self.factor = 100.0 / float(size) 
     96        if size : 
     97            self.factor = 100.0 / float(size) 
    9798         
    9899    def display(self, msg) :