fix networkgraph plugin for new module system
This commit is contained in:
parent
04cd6fb67b
commit
d17ec86483
|
@ -111,9 +111,9 @@ class plugin_NetGraph:
|
||||||
meanDownSpeed = sum(self.savedDownSpeeds)/len(self.savedDownSpeeds)
|
meanDownSpeed = sum(self.savedDownSpeeds)/len(self.savedDownSpeeds)
|
||||||
shownSpeed = max(meanUpSpeed, meanDownSpeed)
|
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,
|
self.networkPixmap.draw_layout(self.image.get_style().black_gc,
|
||||||
4,
|
4,
|
||||||
int(self.height - 1 - (self.height*shownSpeed/maxSpeed)),
|
int(self.height - 1 - (self.height*shownSpeed/maxSpeed)),
|
||||||
|
|
Loading…
Reference in New Issue