Introduction
Introduction Statistics Contact Development Disclaimer Help
media-stats.sh: count emojis and filtered memes - bitreich-memestats - Bitreich…
git clone git://bitreich.org/bitreich-memestats git://hg6vgqziawt5s4dj.onion/bi…
Log
Files
Refs
Tags
LICENSE
---
commit 0eb1f8eff94f620eaf0d4733e39f1174202c19ca
parent 2e9c9d5fa92224bb3c8b19a5c823cfe1bd711c79
Author: Anders Damsgaard <[email protected]>
Date: Mon, 25 Dec 2023 19:31:55 +0100
media-stats.sh: count emojis and filtered memes
Diffstat:
M media-stats.sh | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/media-stats.sh b/media-stats.sh
@@ -59,6 +59,8 @@ n_img="$(grep '.*png$\|.*jpg$\|.*JPG$\|.*gif$' "${pathfile}" \
2>/dev/null | wc -l)"
n_vid="$(grep '.*mkv$\|.*mp4$\|.*webm$\|.*mp3$|.*ogg$' "${pathfile}" \
2>/dev/null | wc -l)"
+n_emoji="$(find /br/gopher/emoji/ -maxdepth 1 -type f | wc -l)"
+n_filter="$(find /br/gopher/memecache/filter/ -maxdepth 1 -type f | wc -l)"
printf '\n '
printf '+----- statistics (%s) ------+\n' "$(date '+%Y-%m-%d')"
@@ -67,11 +69,15 @@ printf '| number of images: %8s |\n' "$n_img"
printf ' '
printf '| number of movies: %8s |\n' "$n_vid"
printf ' '
+printf '| number of emojis: %8s |\n' "$n_emoji"
+printf ' '
+printf '| number of effects: %8s |\n' "$n_filter"
+printf ' '
printf '| average movie length: %10.1f s |\n' \
"$(printf '%f/%f\n' "$sum" "$i" | bc -l)"
printf ' '
printf '| total image viewing time: %6.1f h |\n' \
- "$(printf '%s*%f/3600\n' "$n_img" "$img_viewing_time" | bc -l)"
+ "$(printf '(%s+%s)*%f/3600\n' "$n_img" "$n_emoji" "$img_viewing_time" …
printf ' '
printf '| (assuming %d s per image) |\n' "$img_viewing_time"
printf ' '
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.