mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 14:58:03 +03:00
fix bug in long commands logging where FFI boundary expects int and gets float
Summary: as in the title. FFI function expects integer here: https://www.internalfb.com/code/fbsource/[23136f93e651e27f61c2146ab57a6e441e38a8ca]/fbcode/eden/scm/edenscmnative/bindings/modules/pytracing/src/lib.rs?lines=161 Reviewed By: HarveyHunt Differential Revision: D32429041 fbshipit-source-id: e4a8e1bbeb5d08086575672fb62da34f05f1080b
This commit is contained in:
parent
7a8ccd797a
commit
c5cd8cdbbb
@ -513,7 +513,7 @@ def dispatch(req):
|
||||
output = bindings.tracing.singleton.ascii(
|
||||
# Minimum resolution = 1% of max(duration, threshold)
|
||||
# It's in microseconds (1e6) to divide it by 100 = 1e4
|
||||
(max([duration, threshold]) * 1e4)
|
||||
int((max([duration, threshold]) * 1e4))
|
||||
)
|
||||
if req.ui.configbool("tracing", "stderr"):
|
||||
req.ui.warn("%s\n" % output)
|
||||
|
@ -521,7 +521,7 @@ def dispatch(req):
|
||||
output = bindings.tracing.singleton.ascii(
|
||||
# Minimum resolution = 1% of max(duration, threshold)
|
||||
# It's in microseconds (1e6) to divide it by 100 = 1e4
|
||||
(max([duration, threshold]) * 1e4)
|
||||
int((max([duration, threshold]) * 1e4))
|
||||
)
|
||||
if req.ui.configbool("tracing", "stderr"):
|
||||
req.ui.warn("%s\n" % output)
|
||||
|
Loading…
Reference in New Issue
Block a user