[ui] add chunk computed counter in node editor

This commit is contained in:
broods 2023-01-11 16:53:52 +01:00 committed by Aurore LAFAURIE
parent 0adbcd1c47
commit e556f4f276

View file

@ -53,6 +53,17 @@ Panel {
}
var now = new Date().getTime()
parent.text=Format.getTimeStr((now-nodeStartDateTime)/1000)
var chunkCompletion=0
if (node.chunks.count>1) {
for (var i = 0; i < node.chunks.count; i++) {
if (node.chunks.at(i).statusName == "SUCCESS") {
chunkCompletion++
}
}
parent.text+= " | "+ chunkCompletion + "/" + node.chunks.count + " chunks"
}
}
}
padding: 2