          totals = {"session": "Total",
                    "start": starttime,
                    "end": endtime,
                    "elapsed": elapsed,
                    "rate": rate / total_summaries,
                    "batch": batch,
                    "iterations": iterations}
          logger.debug(totals)
          return totals
  
 
</s> remove         rate = 0
        batchset = set()
 </s> add         examples = 0 </s> remove             rate += summary["rate"]
 </s> add             examples += (summary["batch"] * summary["iterations"])
                  "rate": examples / elapsed,
          totals = {"session": "Total",
                    "start": starttime,
                    "end": endtime,
                    "elapsed": elapsed,
                  "rate": examples / elapsed,
                    "batch": batch,
                    "iterations": iterations}
          logger.debug(totals)
          return totals
  
keep keep keep keep replace keep keep keep keep keep
 Change total rate calculation in analysis 
lib/gui/stats.py