From 7dbdcb10b440eb7c84aacec463da352a1ea6f7d4 Mon Sep 17 00:00:00 2001 From: imarom Date: Mon, 15 Aug 2016 16:59:17 +0300 Subject: personal code review tweaks --- scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py | 1 + 1 file changed, 1 insertion(+) (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py') diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py index 5e4bdfda..afb01791 100644 --- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py +++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py @@ -1420,6 +1420,7 @@ class CUtilStats(CTRexStats): self.history.append(rc.data()) else: self.history.append({}) + return self.history[-1] if __name__ == "__main__": -- cgit 1.2.3-korg