display only hours as max unit in total printtime
Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
1 parent
f970d0ae34
commit
a28ca91f73
2 files changed
+4
-2
No files matched your search
@@ -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
|
||||
|
||||
@@ -15,6 +15,7 @@ export function getDefaultState() {
|
||||
homed_axes: "",
|
||||
extruder: "",
|
||||
status: "",
|
||||
stalls: 0,
|
||||
print_time: 0,
|
||||
printing_time: 0,
|
||||
estimated_print_time: 0,
|
||||
|
||||
Reference in new issue
Block a user