support customizable disk type

This commit is contained in:
Chris Lu
2021-02-13 15:42:42 -08:00
parent 4bd8a692d8
commit 7ce647f27e
7 changed files with 17 additions and 14 deletions

View File

@@ -20,7 +20,7 @@ func (vs *VolumeServer) uiStatusHandler(w http.ResponseWriter, r *http.Request)
for _, loc := range vs.store.Locations {
if dir, e := filepath.Abs(loc.Directory); e == nil {
newDiskStatus := stats.NewDiskStatus(dir)
newDiskStatus.DiskType = loc.GetDiskType()
newDiskStatus.DiskType = loc.DiskType.String()
ds = append(ds, newDiskStatus)
}
}