Skip to content

Commit

Permalink
Update ruptimed
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmyczko authored Oct 28, 2024
1 parent 9ef4eda commit 706978e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ruptimed
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ if [ "${ARG}x" = "x" ]; then
# only query command, deliver results asked for
if [ "$CMD" = "xz.ruptime" ]; then
(
find $SPOOL/ -name "*.ruptime" -mmin +10 -exec cat {} \; |sed "s,up.*,down,g" |while read a b; do printf "%-28s %s %9s\n" $a $b $(TIME_STYLE=+%s ls -l $SPOOL/${a}.ruptime|awk -vNOW=$(date +%s) '{print ((NOW-$(6))/60) }'); done;
find $SPOOL/ -name "*.ruptime" -mmin -10 -exec cat {} \; |sort) | xz -c | openssl enc -A -a -aes-192-cbc -pbkdf2 -pass env:KEY -in - -out -
find $SPOOL/ -type f -name "*.ruptime" -mmin +10 -exec cat {} \; |sed "s,up.*,down,g" |while read a b; do printf "%-28s %s %9s\n" $a $b $(TIME_STYLE=+%s ls -l $SPOOL/${a}.ruptime|awk -vNOW=$(date +%s) '{print ((NOW-$(6))/60) }'); done;
find $SPOOL/ -type f -name "*.ruptime" -mmin -10 -exec cat {} \; |sort) | xz -c | openssl enc -A -a -aes-192-cbc -pbkdf2 -pass env:KEY -in - -out -
fi
for a in runame rload rnet rsw rboot rbench rhw rdisk rac rwho; do
if [ "$CMD" = "xz.$a" ]; then
Expand Down

0 comments on commit 706978e

Please sign in to comment.