fix networkgraph plugin for new module system

This commit is contained in:
Marcos Pinto 2007-06-13 17:13:30 +00:00
parent 04cd6fb67b
commit d17ec86483
1 changed files with 2 additions and 2 deletions

View File

@ -111,9 +111,9 @@ class plugin_NetGraph:
meanDownSpeed = sum(self.savedDownSpeeds)/len(self.savedDownSpeeds)
shownSpeed = max(meanUpSpeed, meanDownSpeed)
import common
import deluge.common
self.pangoLayout.set_text(common.frate(shownSpeed))
self.pangoLayout.set_text(deluge.common.frate(shownSpeed))
self.networkPixmap.draw_layout(self.image.get_style().black_gc,
4,
int(self.height - 1 - (self.height*shownSpeed/maxSpeed)),