diff --git a/stressdisk.go b/stressdisk.go index d6c0b15..9d09bd5 100644 --- a/stressdisk.go +++ b/stressdisk.go @@ -94,9 +94,7 @@ type Stats struct { // NewStats cretates an initialised Stats func NewStats() *Stats { - stats := Stats{} - stats.start = time.Now() - return &stats + return &Stats{start: time.Now()} } // String convert the Stats to a string for printing