          compiled = list()
          for sess_idx, ts_data in self.time_stats.items():
              elapsed = ts_data["end_time"] - ts_data["start_time"]
              batchsize = self.session.total_batchsize[sess_idx]
              iterations = self.iterations[sess_idx]
              compiled.append({"session": sess_idx,
                               "start": ts_data["start_time"],
                               "end": ts_data["end_time"],
                               "elapsed": elapsed,
                               "rate": (batchsize * iterations) / elapsed,
 
</s> remove                              "rate": (batchsize * iterations) / elapsed,
 </s> add                              "rate": (batchsize * ts_data["iterations"]) / elapsed, </s> remove                              "iterations": iterations})
 </s> add                              "iterations": ts_data["iterations"]}) </s> remove     @property
    def iterations(self):
        """ Return session iterations sizes """
        return {int(sess_id): sess["iterations"]
                for sess_id, sess in self.session.state["sessions"].items()}

 </s> add  </s> remove                                 "end_time": max(timestamps)}
 </s> add                                 "end_time": max(timestamps),
                                "iterations": len(timestamps)}
          compiled = list()
          for sess_idx, ts_data in self.time_stats.items():
              elapsed = ts_data["end_time"] - ts_data["start_time"]
              batchsize = self.session.total_batchsize[sess_idx]

              compiled.append({"session": sess_idx,
                               "start": ts_data["start_time"],
                               "end": ts_data["end_time"],
                               "elapsed": elapsed,
                               "rate": (batchsize * iterations) / elapsed,
keep keep keep keep replace keep keep keep keep keep
 [GUI][Bugfix] Analysis tab - display correct stats for current session 
lib/gui/stats.py