display only hours as max unit in total printtime

Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
Stefan Dej committed 2021-04-10 16:46:11 +02:00
1 parent f970d0ae34
commit a28ca91f73
2 files changed
+4 -2

No files matched your search

+3 -2
View File
@@ -130,11 +130,12 @@
if (totalSeconds) {
let output = ""
let days = Math.floor(totalSeconds / (3600 * 24))
// hide days on total print time
/*let days = Math.floor(totalSeconds / (3600 * 24))
if (days) {
totalSeconds %= (3600 * 24)
output += days+"d"
}
}*/
let hours = Math.floor(totalSeconds / 3600)
totalSeconds %= 3600
+1
View File
@@ -15,6 +15,7 @@ export function getDefaultState() {
homed_axes: "",
extruder: "",
status: "",
stalls: 0,
print_time: 0,
printing_time: 0,
estimated_print_time: 0,