Commit fbc15231 authored by Alexander A. Klimov's avatar Alexander A. Klimov Committed by Steve French
Browse files

smb: smbdirect: divide, not multiply, milliseconds by 1000



Unless smbdirect_connection_legacy_debug_proc_show()
wants to debug-log keep_alive_interval as microseconds,
a magnitude higher precision than available by the way,
keepalive_interval_msec should not be multiplied by 1000.

Fixes: cc55f65d ("smb: client: make use of common smbdirect_socket_parameters")
Reviewed-by: default avatarStefan Metzmacher <metze@samba.org>
Signed-off-by: default avatarAlexander A. Klimov <grandmaster@al2klimov.de>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent c6833744
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@ void smbdirect_connection_legacy_debug_proc_show(struct smbdirect_socket *sc,

	seq_puts(m, "\n");
	seq_printf(m, "Conn keep_alive_interval: %u ",
		   sp->keepalive_interval_msec * 1000);
		   sp->keepalive_interval_msec / 1000);
	seq_printf(m, "max_readwrite_size: %u rdma_readwrite_threshold: %u",
		   sp->max_read_write_size,
		   rdma_readwrite_threshold);