diff options
-rwxr-xr-x | src/net_monitor | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net_monitor b/src/net_monitor index b05f7a7..c3409d4 100755 --- a/src/net_monitor +++ b/src/net_monitor @@ -627,7 +627,7 @@ class MonitorGui: traf_vbox.pack_start(draw, True, True, 0) histogram = {"in": [], "out": []} graph = LoadGraph(draw, histogram, HISTOGRAM_SIZE) - draw.connect('expose_event', graph.on_expose) + draw.connect('draw', graph.on_expose) self.ifaces[iface]['graph'] = graph self.ifaces[iface]['histogram'] = histogram @@ -715,7 +715,7 @@ class MonitorGui: draw = Gtk.DrawingArea() histogram = {"in": [], "out": []} graph = LoadGraph(draw, histogram, HISTOGRAM_SIZE, min_height=40, axes_text="%", draw_both=False, max=100, draw_legend=False) - draw.connect('expose_event', graph.on_expose) + draw.connect('draw', graph.on_expose) self.ifaces[iface]['link_graph'] = graph self.ifaces[iface]['link_histogram'] = histogram |