Fix cbstats tasks incorrect key
[ep-engine.git] / management / cbstats
index acf1541..49caf3a 100755 (executable)
@@ -160,7 +160,7 @@ def tasks_stats_formatter(stats, sort_by=None, reverse=False, *args):
                 if task["state"] == "RUNNING":
                     # task is running
                     task["runtime"] = ps_time_stat(cur_time -
-                                                   task["last_starttime"])
+                                                   task["last_starttime_ns"])
                     task["waketime_ns"] = ps_time_stat(0)
                     running_tasks[task["type"]]+=1
                 else: