Skip to content

Commit

Permalink
updated log_timestamp_large_intervals.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
HariSekhon committed Sep 21, 2024
1 parent 1a75fd0 commit 22060c9
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions bin/log_timestamp_large_intervals.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,19 +68,19 @@ while read -r line; do
gap_secs="$((current_epoch - last_epoch))"

if [[ "$gap_secs" -gt "$minimum_secs_gap" ]]; then
# redundant information, use for debugging only
# redundant information, use for debugging only
#echo "$gap_secs secs = $(date -d "@$last_epoch" +"$format") => $(date -d "@$current_epoch" +"$format")"
#echo "$gap_secs secs"
#if [ "$gap_secs" -gt 60 ]; then
mins="$((gap_secs / 60))"
secs="$((gap_secs % 60))"
echo "$mins mins $secs secs"
#fi
echo "$last_line"
echo "$line"
echo
#if [ "$gap_secs" -gt 60 ]; then
mins="$((gap_secs / 60))"
secs="$((gap_secs % 60))"
echo "$mins mins $secs secs"
#fi
echo "$last_line"
echo "$line"
echo
fi

last_epoch="$current_epoch"
last_line="$line"
last_line="$line"
done < "$logfile"

0 comments on commit 22060c9

Please sign in to comment.