From b3d7493f5e8b20378ec2e41a10459e4339d538e9 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 1 Feb 2020 18:08:43 -0500 Subject: wip --- rrdformat/sniff.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rrdformat/sniff.go') 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) -- cgit v1.2.3