summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--luaotfload-database.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/luaotfload-database.lua b/luaotfload-database.lua
index e77d4fd..bae90c3 100644
--- a/luaotfload-database.lua
+++ b/luaotfload-database.lua
@@ -2691,8 +2691,13 @@ local collect_statistics = function (mappings)
pprint_top (fontstyle_name, 4)
end
+ local mean_dsnsize = 0
+ if n_dsnsize > 0 then
+ mean_dsnsize = sum_dsnsize / n_dsnsize
+ end
+
return {
- mean_dsnsize = sum_dsnsize / n_dsnsize,
+ mean_dsnsize = mean_dsnsize,
names = {
fullname = n_fullname,
families = n_family,