Commit 6aa2dbff authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Don't crash if requesting latency data without recording latencies.

parent 1b112417
......@@ -123,10 +123,16 @@ func NewMountState(fs RawFileSystem) *MountState {
}
func (me *MountState) Latencies() map[string]float64 {
if me.latencies == nil {
return nil
}
return me.latencies.Latencies(1e-3)
}
func (me *MountState) OperationCounts() map[string]int {
if me.latencies == nil {
return nil
}
return me.latencies.Counts()
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment