dashboard: fix uptime
This commit is contained in:
parent
27e8f1437e
commit
691232756f
1 changed files with 2 additions and 1 deletions
|
|
@ -36,6 +36,7 @@ Row {
|
||||||
Column {
|
Column {
|
||||||
id: info
|
id: info
|
||||||
|
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
spacing: Appearance.spacing.normal
|
spacing: Appearance.spacing.normal
|
||||||
|
|
||||||
InfoLine {
|
InfoLine {
|
||||||
|
|
@ -70,7 +71,7 @@ Row {
|
||||||
running: true
|
running: true
|
||||||
command: ["uptime", "-p"]
|
command: ["uptime", "-p"]
|
||||||
stdout: StdioCollector {
|
stdout: StdioCollector {
|
||||||
onStreamFinished: uptimeProc.uptime = text
|
onStreamFinished: uptimeProc.uptime = text.trim()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue