diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-03-26 10:53:43 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-03-26 10:53:43 +0900 |
| commit | 80e46b87ad308cfdbecbd8db5bfd0dbdee6b916b (patch) | |
| tree | 649b39bd152b4d98f26672fbcb5adc41eefaf702 /ar/.local/bin | |
| parent | d276dff4e93785cbf220adb6db01c8414b634264 (diff) | |
modified statusbar/sb-ylog
Diffstat (limited to 'ar/.local/bin')
| -rwxr-xr-x | ar/.local/bin/statusbar/sb-ylog | 5 |
1 files changed, 3 insertions, 2 deletions
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() { |
