Skip to content

Commit

Permalink
fix missing integer conversion
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro M. Ramallo <[email protected]>
  • Loading branch information
aramallo committed Sep 8, 2024
1 parent f464ce0 commit aef1f15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/bondy/src/bondy_password.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion schema/hidden/vm_args.schema
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aef1f15

Please sign in to comment.