Write import stats to stats.json.
[lightning.git] / stats.go
index a02fef701d6cf1dc671f2699ac46519f3ed0b15a..8da2a69ad75afb3ebfe72e28aa2f3d59c80bd792 100644 (file)
--- a/stats.go
+++ b/stats.go
@@ -17,11 +17,11 @@ import (
        log "github.com/sirupsen/logrus"
 )
 
-type stats struct {
+type statscmd struct {
        debugUnplaced bool
 }
 
-func (cmd *stats) RunCommand(prog string, args []string, stdin io.Reader, stdout, stderr io.Writer) int {
+func (cmd *statscmd) RunCommand(prog string, args []string, stdin io.Reader, stdout, stderr io.Writer) int {
        var err error
        defer func() {
                if err != nil {
@@ -116,7 +116,7 @@ func (cmd *stats) RunCommand(prog string, args []string, stdin io.Reader, stdout
        return 0
 }
 
-func (cmd *stats) doStats(input io.Reader, output io.Writer) error {
+func (cmd *statscmd) doStats(input io.Reader, output io.Writer) error {
        var ret struct {
                Genomes          int
                CalledBases      []int64