mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 19:44:52 +00:00
fix networkgraph plugin for new module system
This commit is contained in:
parent
04cd6fb67b
commit
d17ec86483
1 changed files with 2 additions and 2 deletions
|
@ -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)),
|
||||
|
|
Loading…
Add table
Reference in a new issue