aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--TODO1
-rwxr-xr-xsrc/net_monitor2
2 files changed, 2 insertions, 1 deletions
diff --git a/TODO b/TODO
index 3377bcc..ae47f50 100644
--- a/TODO
+++ b/TODO
@@ -12,3 +12,4 @@ TODO for net_monitor:
- advanced network statistics (/proc/net/netstat)
- socket statistics
- ip forwarding (/proc/sys/net/ipv4/ip_forward)
+ - graphs: correctly shift values
diff --git a/src/net_monitor b/src/net_monitor
index ba5939b..42524e7 100755
--- a/src/net_monitor
+++ b/src/net_monitor
@@ -146,7 +146,7 @@ class LoadGraph:
self.__set_context_color(self.__context, color)
x = self.__inner.x + self.__mesh_x
- for i in bw_list[:-1]:
+ for i in bw_list[1:]:
self.__context.line_to(x, i)
x += self.__mesh_x
self.__context.stroke()