Report boot time only once it has meaningful value
This commit is contained in:
@@ -398,9 +398,11 @@ void handleMetrics(){
|
|||||||
buf += displayTaskIterationsCount;
|
buf += displayTaskIterationsCount;
|
||||||
buf += "\n";
|
buf += "\n";
|
||||||
|
|
||||||
buf += "nixie_boot_timestamp_seconds ";
|
if (bootTimestamp > 0) {
|
||||||
buf += bootTimestamp;
|
buf += "nixie_boot_timestamp_seconds ";
|
||||||
buf += "\n";
|
buf += bootTimestamp;
|
||||||
|
buf += "\n";
|
||||||
|
}
|
||||||
|
|
||||||
buf += "nixie_last_ntp_sync_timestamp_seconds ";
|
buf += "nixie_last_ntp_sync_timestamp_seconds ";
|
||||||
buf += lastNtpSyncTimestamp;
|
buf += lastNtpSyncTimestamp;
|
||||||
|
|||||||
Reference in New Issue
Block a user