- zram.cc/.h: read zram usage; memory bar can subtract RAM held by zram
- memswap: zram and disk swap shown separately in the tooltip
- uptime: format string with %d %h %m %s, %H %M %S, %t, \n and {...}
- settings dialog fields for both, Russian translation
- tests/test_format_uptime.cc with tests/run.sh
This is what the installed 1:1.3.2-2ubuntu3+zram2 package was built from.
8 lines
316 B
Bash
8 lines
316 B
Bash
#!/bin/bash
|
|
# Build and run the standalone format_uptime() test.
|
|
set -e
|
|
dir="$(cd "$(dirname "$0")" && pwd)"
|
|
out="$dir/build"
|
|
mkdir -p "$out"
|
|
g++ -Wall -Wextra -o "$out/test_format_uptime" "$dir/test_format_uptime.cc" "$dir/../panel-plugin/uptime.cc" $(pkg-config --cflags --libs glib-2.0)
|
|
"$out/test_format_uptime"
|