Explorar el Código

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

Frans Bergman hace 4 años
padre
commit
32aec8951f
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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")"