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:
Jan Mazur 2021-11-15 08:09:49 -08:00 committed by Facebook GitHub Bot
parent 7a8ccd797a
commit c5cd8cdbbb
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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)