s3:utils: Use floating-point arithmetic when result is assigned to a double
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Mon, 1 May 2023 02:15:26 +0000 (14:15 +1200)
committerJeremy Allison <jra@samba.org>
Thu, 4 May 2023 00:34:32 +0000 (00:34 +0000)
commitd2720a9e788f6870b7c68a1126820b15a8db811d
tree6e5714141ba64e5dddd62ddd0aefdbfc76539341
parent4dccf5afa444edecd2893dac7558bac9212526bf
s3:utils: Use floating-point arithmetic when result is assigned to a double

This avoids any loss of precision from performing an integer division.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/utils/smbget.c