We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bc64dd4 + 2b220f4 commit 87613faCopy full SHA for 87613fa
lib/server/routes/health.js
@@ -100,7 +100,10 @@ export default function addHealthRoutes(app) {
100
// Moving average
101
period,
102
movingAverage,
103
- message: `Last ${period} minutes had a success rate of ${movingAverage.toFixed(2)}%.`,
+ message:
104
+ isNaN(movingAverage) || !successRates.length
105
+ ? 'Too early to report. No exports made yet. Please check back soon.'
106
+ : `Last ${period} minutes had a success rate of ${movingAverage.toFixed(2)}%.`,
107
108
// SVG/JSON attempts
109
svgExportAttempts: stats.exportFromSvgAttempts,
0 commit comments