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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user