summaryrefslogtreecommitdiff
path: root/rrdformat/format.go
diff options
context:
space:
mode:
Diffstat (limited to 'rrdformat/format.go')
-rw-r--r--rrdformat/format.go22
1 files changed, 11 insertions, 11 deletions
diff --git a/rrdformat/format.go b/rrdformat/format.go
index 8277089..d004e86 100644
--- a/rrdformat/format.go
+++ b/rrdformat/format.go
@@ -39,28 +39,28 @@ import (
//
// - "0001" (the original in rrdtool 1.0.0, 1999-07-15)
-type Value = rrdbinary.Float
+type Value = rrdbinary.Double
type Header struct {
Cookie rrdbinary.String `rrdbinary:"size=4" xml:"-"`
Version rrdbinary.String `rrdbinary:"size=5" xml:"version"`
- FloatCookie rrdbinary.Float `xml:"-"`
- DSCnt rrdbinary.Uint `xml:"-"`
- RRACnt rrdbinary.Uint `xml:"-"`
- PDPStep rrdbinary.Uint `xml:"step"`
+ FloatCookie rrdbinary.Double `xml:"-"`
+ DSCnt rrdbinary.ULong `xml:"-"`
+ RRACnt rrdbinary.ULong `xml:"-"`
+ PDPStep rrdbinary.ULong `xml:"step"`
Parameters [10]rrdbinary.Unival `xml:"-"`
}
type DSDef struct {
- DSName rrdbinary.String `rrdbinary:"size=20" xml:"name"`
- DSType rrdbinary.String `rrdbinary:"size=20" xml:"type"`
+ DSName rrdbinary.String `rrdbinary:"size=20" xml:"name"`
+ DSType rrdbinary.String `rrdbinary:"size=20" xml:"type"`
Parameters [10]rrdbinary.Unival `xml:"params>item"`
}
type RRADef struct {
CFName rrdbinary.String `rrdbinary:"size=20" xml:"cf"`
- RowCnt rrdbinary.Uint `xml:"-"`
- PDPCnt rrdbinary.Uint `xml:"pdp_per_row"`
+ RowCnt rrdbinary.ULong `xml:"-"`
+ PDPCnt rrdbinary.ULong `xml:"pdp_per_row"`
Parameters [10]rrdbinary.Unival `xml:"params>item"`
CDPPrep *CDPPrep `rrdbinary:"-" xml:"cdp_prep"`
Database [][]Value `rrdbinary:"-" xml:"database>row>v"`
@@ -68,7 +68,7 @@ type RRADef struct {
type TimeWithUsec struct {
Sec rrdbinary.Time
- Usec rrdbinary.Int // signed, but always >= 0
+ Usec rrdbinary.Long // signed, but always >= 0
}
func (ts TimeWithUsec) Time() time.Time {
@@ -93,7 +93,7 @@ type CDPPrep struct {
}
type RRAPtr struct {
- CurRow rrdbinary.Uint
+ CurRow rrdbinary.ULong
}
type RRDv0005 = RRDv0004