summaryrefslogtreecommitdiff
path: root/rrdformat/sniff.go
diff options
context:
space:
mode:
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)