Fix cbstats tasks incorrect key 57/77657/2
authorJames Harrison <00jamesh@gmail.com>
Wed, 3 May 2017 09:51:44 +0000 (10:51 +0100)
committerDave Rigby <daver@couchbase.com>
Thu, 4 May 2017 09:07:39 +0000 (09:07 +0000)
Change-Id: I4c2d3551a2b2a3f1ca213bf3cd9b067140f6e67a
Reviewed-on: http://review.couchbase.org/77657
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
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: