fatal: use TimeSpan for timing

This commit is contained in:
Michael Scire 2020-08-03 19:52:53 -07:00
parent 501280b6e5
commit ee3e0fa537
3 changed files with 28 additions and 26 deletions

View file

@ -20,18 +20,18 @@ namespace ams::fatal::srv {
class FatalConfig {
private:
settings::system::SerialNumber serial_number;
settings::system::FirmwareVersion firmware_version;
u64 language_code;
u64 quest_reboot_interval_second;
bool transition_to_fatal;
bool show_extra_info;
bool quest_flag;
const char *error_msg;
const char *error_desc;
const char *quest_desc;
u64 fatal_auto_reboot_interval;
bool fatal_auto_reboot_enabled;
settings::system::SerialNumber serial_number{};
settings::system::FirmwareVersion firmware_version{};
u64 language_code{};
TimeSpan quest_reboot_interval{};
bool transition_to_fatal{};
bool show_extra_info{};
bool quest_flag{};
const char *error_msg{};
const char *error_desc{};
const char *quest_desc{};
TimeSpan fatal_auto_reboot_interval{};
bool fatal_auto_reboot_enabled{};
public:
FatalConfig();
@ -67,11 +67,11 @@ namespace ams::fatal::srv {
return this->fatal_auto_reboot_enabled;
}
u64 GetQuestRebootTimeoutInterval() const {
return this->quest_reboot_interval_second * 1'000ul;
TimeSpan GetQuestRebootTimeoutInterval() const {
return this->quest_reboot_interval;
}
u64 GetFatalRebootTimeoutInterval() const {
TimeSpan GetFatalRebootTimeoutInterval() const {
return this->fatal_auto_reboot_interval;
}