diff options
author | Case Duckworth | 2022-08-13 23:17:06 -0500 |
---|---|---|
committer | Case Duckworth | 2022-08-13 23:17:06 -0500 |
commit | 6a26111b2228b54af3e04d40b3232ea31cef4e54 (patch) | |
tree | fa6a381605ae6cb2e7b0d29b9ff27014efaff6ca | |
parent | Fix styling (diff) | |
download | sfeed-6a26111b2228b54af3e04d40b3232ea31cef4e54.tar.gz sfeed-6a26111b2228b54af3e04d40b3232ea31cef4e54.zip |
Limit weeds to 50
-rwxr-xr-x | sfeed_weed.awk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sfeed_weed.awk b/sfeed_weed.awk index d3a463c..ccc3521 100755 --- a/sfeed_weed.awk +++ b/sfeed_weed.awk | |||
@@ -15,6 +15,10 @@ BEGIN { | |||
15 | } | 15 | } |
16 | 16 | ||
17 | { | 17 | { |
18 | if (++line > 50) { | ||
19 | # Only show the newest 50 things. | ||
20 | exit | ||
21 | } | ||
18 | timestamp = $1 | 22 | timestamp = $1 |
19 | title = $2 | 23 | title = $2 |
20 | link = $3 | 24 | link = $3 |