2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

Fix printing of T_TIMESPEC values.

This commit is contained in:
Todd C. Miller
2018-08-21 17:35:44 -06:00
parent 31e065c6ca
commit 9e6c14b091

View File

@@ -166,7 +166,7 @@ dump_defaults(void)
/* display timespec in minutes as a double */
double d = cur->sd_un.tspec.tv_sec +
(cur->sd_un.tspec.tv_nsec / 1000000000.0);
sudo_printf(SUDO_CONV_INFO_MSG, desc, d * 60.0);
sudo_printf(SUDO_CONV_INFO_MSG, desc, d / 60.0);
sudo_printf(SUDO_CONV_INFO_MSG, "\n");
break;
}