mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-13 13:05:37 +00:00
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…
x
Reference in New Issue
Block a user