[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
2021-11-21 19:02:01 -05:00
committed by GitHub
parent d29993fafa
commit cece66adc6
4 changed files with 406 additions and 154 deletions
+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);