Improve documentation.
All checks were successful
Build Docker image / build (push) Successful in 59s

This commit is contained in:
Pieter Hollander 2024-02-18 18:10:12 +01:00
parent 82954046c2
commit 2a92510c32
Signed by: pieter
SSH key fingerprint: SHA256:HbX+9cBXsop9SuvL+mELd29sK+7DehFfdVweFVDtMSg

View file

@ -40,8 +40,11 @@ import (
// An average month has 2 629 743.83 seconds. // An average month has 2 629 743.83 seconds.
// This saves at least: // This saves at least:
// 2,629,743.83 seconds * 4 bytes = 10,518,975.32 bytes = 10,518.98 kB = 10.52 MB // 2,629,743.83 seconds * 4 bytes = 10,518,975.32 bytes = 10,518.98 kB = 10.52 MB
// This applies both to Dt1 and Dt2 as well as Rt1 and Rt2, so should be quadrupled. // This applies both to Dt1 and Dt2 as well as Rt1 and Rt2, only one is recorded at a time.
// 10.52 * 4 = 42.08 MB. // 10.52 * 3 = 31.56 MB.
// In addition, many meters only update these metrics once every 10 seconds,
// meaning even more storage capacity is saved:
// 10.52 / 10 * 9 = 9,468 MB.
type Payload struct { type Payload struct {
T string `json:"t"` // Timestamp T string `json:"t"` // Timestamp