mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
sysinfo example: Improve the disk use section
This commit is contained in:
parent
d058e4c10e
commit
7c813a70fd
3 changed files with 45 additions and 33 deletions
|
@ -17,7 +17,7 @@ cpu_count=`sysctl -n hw.ncpu`
|
|||
cpu_vendor=`sysctl -n machdep.cpu.vendor`
|
||||
cpu_model=`sysctl -n machdep.cpu.brand_string`
|
||||
mem_size_kb=`sysctl -n hw.memsize`
|
||||
partitions=`df -lk | tail -n+2 | sed 's/\([^ ]*\) *\([^ ]*\) *\([^ ]*\) *\([^ ]*\) *\([^ ]*\) *\([^ ]*\) *\([^ ]*\) *\([^ ]*\) *\([^ ]*\)/{ "dev": "\1", "mnt": "\9", "total": \2, "used": \3 },/' | sed '$s/,$//'`
|
||||
partitions=`df -lk | tail -n+2 | sed 's/\([^ ]*\) *\([^ ]*\) *\([^ ]*\) *\([^ ]*\) *\([^ ]*\) *\([^ ]*\) *\([^ ]*\) *\([^ ]*\) *\([^ ]*\)/{ "dev": "\1", "mnt": "\9", "total": \2, "free": \4 },/' | sed '$s/,$//'`
|
||||
|
||||
sixtyfps-viewer `dirname $0`/sysinfo.60 --load-data - <<EOT
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue