diff options
Diffstat (limited to 'rrdformat/unmarshal_binary.go')
-rw-r--r-- | rrdformat/unmarshal_binary.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/rrdformat/unmarshal_binary.go b/rrdformat/unmarshal_binary.go index 70c06b7..923ccb1 100644 --- a/rrdformat/unmarshal_binary.go +++ b/rrdformat/unmarshal_binary.go @@ -26,7 +26,6 @@ func (rrd *RRD) UnmarshalBinary(data []byte) error { } // allocate memory based on .Header values parsed.DSDefs = make([]DSDef, parsed.Header.DSCnt) - parsed.DSDefs = make([]DSDef, parsed.Header.DSCnt) parsed.RRADefs = make([]RRADef, parsed.Header.RRACnt) parsed.PDPPreps = make([]PDPPrep, parsed.Header.DSCnt) parsed.CDPPreps = make([]CDPPrep, parsed.Header.DSCnt*parsed.Header.RRACnt) @@ -58,9 +57,6 @@ func (rrd *RRD) UnmarshalBinary(data []byte) error { if err := decoder.Decode(lastUpdatedPtr, ""); err != nil { return fmt.Errorf("field %s: %w", "LastUpdated", err) } - if err := decoder.Decode(&parsed.LastUpdated, ""); err != nil { - return fmt.Errorf("field %s: %w", "LastUpdated", err) - } if err := decoder.Decode(&parsed.PDPPreps, ""); err != nil { return fmt.Errorf("field %s: %w", "PDPPreps", err) } |