fix version printing

This commit is contained in:
2025-10-22 13:42:14 +02:00
parent 755e79b72d
commit 37f76b38ab
2 changed files with 6 additions and 1 deletions

View File

@@ -18,6 +18,11 @@ func Run() {
log.Fatal(err)
}
if conf.Showversion {
fmt.Printf("This is io-exporter version %d\n", Version)
os.Exit(0)
}
metrics := NewMetrics(conf)
alloc := NewAlloc()