Changeset 3770:84b1261f3a8d in orange


Ignore:
Timestamp:
07/08/07 16:15:57 (7 years ago)
Author:
janezd <janez.demsar@…>
Branch:
default
Convert:
13bc025d6ba0dc361d69a7838e001bee447a7c2f
Message:
  • fixed a division by zero
File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/updateOrange.py

    r3567 r3770  
    496496    # show percent of finished download 
    497497    def updateDownloadStatus(self, blk_cnt, blk_size, tot_size): 
    498         self.statusBar.message("Downloaded %.1f%%" % (100*min(tot_size, blk_cnt*blk_size) / tot_size)) 
     498        self.statusBar.message("Downloaded %.1f%%" % (100*min(tot_size, blk_cnt*blk_size) / (tot_size or 1))) 
    499499         
    500500    def computeFileMd(self, fname): 
Note: See TracChangeset for help on using the changeset viewer.