mirror of
https://codeberg.org/scip/io-exporter.git
synced 2025-12-16 20:11:00 +01:00
fix version printing (#1)
This commit is contained in:
@@ -15,7 +15,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
Version = `v0.0.3`
|
Version = `v0.0.4`
|
||||||
SLEEP = 5
|
SLEEP = 5
|
||||||
Usage = `io-exporter [options] <file>
|
Usage = `io-exporter [options] <file>
|
||||||
Options:
|
Options:
|
||||||
|
|||||||
@@ -18,6 +18,11 @@ func Run() {
|
|||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if conf.Showversion {
|
||||||
|
fmt.Printf("This is io-exporter version %s\n", Version)
|
||||||
|
os.Exit(0)
|
||||||
|
}
|
||||||
|
|
||||||
metrics := NewMetrics(conf)
|
metrics := NewMetrics(conf)
|
||||||
alloc := NewAlloc()
|
alloc := NewAlloc()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user