Add comment to explain the NULLs in calls to doErrorMetric().
@@ -962,7 +962,9 @@ reportPeriodicStuff(void)
doTotalDuration(TOT_NET_DURATION);
doTotalDuration(TOT_DNS_DURATION);
- // Report errors
+ // Having NULL in the third and fourth parameters (func and name)
+ // is how report.c knows that this doErrorMetric() is a "summary"
+ // (aggregated) metric.
doErrorMetric(NET_ERR_CONN, PERIODIC, NULL, NULL, NULL);
doErrorMetric(NET_ERR_RX_TX, PERIODIC, NULL, NULL, NULL);
doErrorMetric(NET_ERR_DNS, PERIODIC, NULL, NULL, NULL);
