方向音痴 wrote:I really like this plugin except as 'loki' mentioned It doesn't appear to be showing accurate speeds on the graph:

As you can see from the screenshot the speed is going at 13 MB/sec which should be over the 12.8 MB/sec line but its significantly under it. During the graphed data deluge reported speeds up to 16 megabytes/sec but from the graph data it doesn't appear to have ever gone up in a value enough to hit even 14 MB/sec. When I had the scheduler limiting it to 200 KB/sec it only showed up as like 176 KB/sec
In the file graph.py there is a mistake - in function trace_path:
self.ctx.line_to(width,
int(height - ((height
- 28) * values[0] / float(max_value))))
x = width
step = (width - 60) / float(self.length)
for i, value in enumerate(values):
if i == self.length - 1:
x = 62
self.ctx.line_to(x,
int(height - 1 - ((height
- 28) * value / float(max_value)))
)
x -= step
There is no need "-28" (or need to add it in function draw_left_axis)
Sorry for my bad english, i'm russian