[Commands] Cleanup #instance Command. (#1803)

* [Commands] Cleanup #instance Command.
- Cleanups message and logic.
- Cleanup ListAllInstances() method.
- Fix day calculation in ConvertSecondsToTime().

* Cleanup.

* Add return.
This commit is contained in:
Kinglykrab authored and GitHub committed 2021-11-21 19:02:01 -05:00
1 parent d29993fafa
commit cece66adc6
4 files changed
+406 -154

No files matched your search

+2 -2
View File
@@ -1041,8 +1041,8 @@ std::string ConvertSecondsToTime(int duration, bool is_milliseconds)
duration
);
int days = int(timer_length / 86400000);
timer_length %= 86400000;
int days = int(timer_length / 86400);
timer_length %= 86400;
int hours = int(timer_length / 3600);
timer_length %= 3600;
int minutes = int(timer_length / 60);