Report boot time only once it has meaningful value

This commit is contained in:
2025-09-10 08:06:17 +03:00
parent b2212bfd1b
commit 56da754a96

View File

@@ -398,9 +398,11 @@ void handleMetrics(){
buf += displayTaskIterationsCount;
buf += "\n";
buf += "nixie_boot_timestamp_seconds ";
buf += bootTimestamp;
buf += "\n";
if (bootTimestamp > 0) {
buf += "nixie_boot_timestamp_seconds ";
buf += bootTimestamp;
buf += "\n";
}
buf += "nixie_last_ntp_sync_timestamp_seconds ";
buf += lastNtpSyncTimestamp;