From 80e46b87ad308cfdbecbd8db5bfd0dbdee6b916b Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Thu, 26 Mar 2026 10:53:43 +0900 Subject: modified statusbar/sb-ylog --- ar/.local/bin/statusbar/sb-ylog | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ar') diff --git a/ar/.local/bin/statusbar/sb-ylog b/ar/.local/bin/statusbar/sb-ylog index 2b0cfcc..637af89 100755 --- a/ar/.local/bin/statusbar/sb-ylog +++ b/ar/.local/bin/statusbar/sb-ylog @@ -15,10 +15,11 @@ LOCK="$CACHE_DIR/lock" mkdir -p "$CACHE_DIR" fetch_logs() { - today=$(LC_TIME=C date +%d/%b) + us_today=$(TZ=America/New_York LC_TIME=C date +%d/%b) + us_yesterday=$(TZ=America/New_York LC_TIME=C date -d 'yesterday' +%d/%b) ssh -o BatchMode=yes -o ConnectTimeout=10 root@thesiah.xyz \ "cat /var/log/nginx/diary.us.log /var/log/nginx/recordings.us.log /var/log/nginx/peertube.us.log 2>/dev/null" \ - 2>/dev/null | grep "$today" | grep -E '[0-9]{2}:[0-9]{2}:[0-9]{2} ' | grep -v '59\.19\.56\.8' | sort -u + 2>/dev/null | grep -E "$us_today|$us_yesterday" | grep -E '[0-9]{2}:[0-9]{2}:[0-9]{2} ' | grep -v '59\.19\.56\.8' | sort -u } update() { -- cgit v1.2.3