fix power-history script, pmOS ships with multiple logreads
This commit is contained in:
parent
d67f053379
commit
b9390376e9
1 changed files with 1 additions and 1 deletions
|
|
@ -11,6 +11,6 @@ from=${1:-"-7"}
|
|||
to=${2:-"0"}
|
||||
date_range=$(./date-range.sh "$from" "$to" | paste -sd \|)
|
||||
|
||||
sudo logread -n1000 -u $LOGNAME/power-info | \
|
||||
sudo /usr/bin/logread -n1000 -u $LOGNAME/power-info | \
|
||||
cut -d' ' -f6- | \
|
||||
jq --arg date_range "$date_range" -c 'select(.timestamp | match("^\($date_range)"))'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue