浏览代码

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

Frans Bergman 4 年之前
父节点
当前提交
32aec8951f
共有 1 个文件被更改,包括 1 次插入0 次删除
  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")"