Description: avoid crashing in top-int plugin
 The first intset can have less elements than the second one. Catch IndexError
 to avoid crashing if that is the case.
Author: Emanuele Rocca <ema@debian.org>
Bug-Debian: https://bugs.debian.org/852927
Last-Update: 2019-02-23

--- dstat-0.7.3.orig/plugins/dstat_top_int.py
+++ dstat-0.7.3/plugins/dstat_top_int.py
@@ -37,7 +37,10 @@ class dstat_plugin(dstat):
                 self.intset2 = [ long(int) for int in line[3:] ]
 
         for i in range(len(self.intset2)):
-            total = (self.intset2[i] - self.intset1[i]) * 1.0 / elapsed
+            try:
+                total = (self.intset2[i] - self.intset1[i]) * 1.0 / elapsed
+            except IndexError:
+                continue
 
             ### Put the highest value in self.val
             if total > self.val['total']:
