diff --git a/apps/bondy/src/bondy_password.erl b/apps/bondy/src/bondy_password.erl index cfa5da1a..dce300ff 100644 --- a/apps/bondy/src/bondy_password.erl +++ b/apps/bondy/src/bondy_password.erl @@ -293,7 +293,7 @@ data(#{version := ?VERSION, data := Value}) -> hash_length(#{version := <<"1.0">>, hash_pass := Val}) -> %% hash_pass is hex formatted, so two chars per original char - byte_size(Val) / 2; + trunc(byte_size(Val) / 2); hash_length(#{version := <<"1.1">>, hash_len := Val}) -> Val; diff --git a/schema/hidden/vm_args.schema b/schema/hidden/vm_args.schema index dd80b825..3940de77 100644 --- a/schema/hidden/vm_args.schema +++ b/schema/hidden/vm_args.schema @@ -427,7 +427,7 @@ hidden ZDBBL = cuttlefish:conf_get("vm.distribution.buffer_size", Conf, undefined), case ZDBBL of undefined -> undefined; - X when is_integer(X) -> cuttlefish_util:ceiling(X / 1024); %% Bytes to Kilobytes; + X when is_integer(X) -> cuttlefish_util:ceiling(trunc(X / 1024)); %% Bytes to Kilobytes; _ -> undefined end end