summaryrefslogtreecommitdiff
path: root/rrdformat/sniff.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2020-02-01 18:08:43 -0500
committerLuke Shumaker <lukeshu@lukeshu.com>2020-02-01 18:08:43 -0500
commitb3d7493f5e8b20378ec2e41a10459e4339d538e9 (patch)
tree79c1ff80eeb7474441bf711884b790cf8aad7053 /rrdformat/sniff.go
parent096410449cad14b32b41a6de1ef56f16ef3d25fb (diff)
wip
Diffstat (limited to 'rrdformat/sniff.go')
-rw-r--r--rrdformat/sniff.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/rrdformat/sniff.go b/rrdformat/sniff.go
index de1e67b..d8b5eb3 100644
--- a/rrdformat/sniff.go
+++ b/rrdformat/sniff.go
@@ -26,7 +26,7 @@ func SniffArchitecture(data []byte) (rrdbinary.Architecture, error) {
// 1. File format version string
switch header.Version {
- case "0001", "0002", "0003", "0004", "0005":
+ case RRD_VERSION1, RRD_VERSION2, RRD_VERSION3, RRD_VERSION4, RRD_VERSION5:
// do nothing
default:
return rrdbinary.Architecture{}, rrdbinary.NewBinError(fmt.Sprintf("can't handle RRD file version %q", header.Version), data, 4, 5)