hugo/metrics
Cameron Moore 6a5acd753a metrics: Fix divide by zero error
Under certain conditions, `howSimilarString` could reach a divide-by-
zero situation which causes bogus values to print in the cache potential
column of the template hints output.  This situation essentially causes
a `int(math.NaN())` value to be returned and hilarity ensues thereafter.
2022-05-26 10:39:29 +02:00
..
metrics.go metrics: Fix divide by zero error 2022-05-26 10:39:29 +02:00
metrics_test.go metrics: Fix divide by zero error 2022-05-26 10:39:29 +02:00