This is an automated email from the ASF dual-hosted git repository.

dpgaspar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new cba82cf  [statsd] Send time metrics in ms not seconds (#9614)
cba82cf is described below

commit cba82cfd03a9859d1bf32d43830a72548e1f120e
Author: Daniel Vaz Gaspar <[email protected]>
AuthorDate: Wed Apr 22 16:46:38 2020 +0100

    [statsd] Send time metrics in ms not seconds (#9614)
---
 superset/utils/core.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/superset/utils/core.py b/superset/utils/core.py
index 5749930..0c838b7 100644
--- a/superset/utils/core.py
+++ b/superset/utils/core.py
@@ -1239,7 +1239,7 @@ def time_function(func: Callable, *args, **kwargs) -> 
Tuple[float, Any]:
     start = default_timer()
     response = func(*args, **kwargs)
     stop = default_timer()
-    return stop - start, response
+    return (stop - start) * 1000.0, response
 
 
 def MediumText() -> Variant:

Reply via email to