Browse Source

img-chon.sh: Add database size to stats command

Frans Bergman 4 years ago
parent
commit
32aec8951f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      .scripts/img-chon.sh

+ 1 - 0
.scripts/img-chon.sh

@@ -131,6 +131,7 @@ case $1 in
     "stats")
         echo "Number of images: $($SQL "SELECT COUNT(*) FROM image;")"
         echo "Number of distinct tags: $($SQL "SELECT COUNT(DISTINCT tag) FROM image_tag;")"
+        echo "Database size: $(du -h "$DATABASE" | awk '{ print $1 }')"
         ;;
     "")
         name="$(basename "$0")"