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 {
|
||||
id: info
|
||||
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
spacing: Appearance.spacing.normal
|
||||
|
||||
InfoLine {
|
||||
|
|
@ -70,7 +71,7 @@ Row {
|
|||
running: true
|
||||
command: ["uptime", "-p"]
|
||||
stdout: StdioCollector {
|
||||
onStreamFinished: uptimeProc.uptime = text
|
||||
onStreamFinished: uptimeProc.uptime = text.trim()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue