diff options
author | mh <mh@immerda.ch> | 2012-12-07 13:39:20 +0100 |
---|---|---|
committer | mh <mh@immerda.ch> | 2012-12-07 13:39:20 +0100 |
commit | 6d79119d50d834b547f305cc3363f81f18d4ff15 (patch) | |
tree | 15d94eb828999379ded98a4282fd91847068eddf /files/munin | |
parent | 56c15eb79702694ecd0a413958c2e5498a794f0a (diff) |
fix an issue if nothing got compiled
Diffstat (limited to 'files/munin')
-rw-r--r-- | files/munin/puppet_ | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/files/munin/puppet_ b/files/munin/puppet_ index 279f5ab..0fc8e52 100644 --- a/files/munin/puppet_ +++ b/files/munin/puppet_ @@ -49,7 +49,7 @@ def phaselog(logfile) end end end - puts "avg_compile.value #{(avg / count).to_s[0..3]}" unless count == 0 + puts "avg_compile.value #{count == 0 ? 0 : (avg / count).to_s[0..3]}" puts "last5m_count.value #{count}" puts "last24h_unique_count.value #{day_count_unique}" end |