diff options
Diffstat (limited to 'weed/storage/disk_location.go')
| -rw-r--r-- | weed/storage/disk_location.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/weed/storage/disk_location.go b/weed/storage/disk_location.go index 88a52ccd8..7030900dc 100644 --- a/weed/storage/disk_location.go +++ b/weed/storage/disk_location.go @@ -354,3 +354,10 @@ func (l *DiskLocation) CheckDiskSpace() { } } + +func (l *DiskLocation) GetDiskType() string { + if l.DiskType == SsdType { + return "SSD" + } + return "HDD" +}
\ No newline at end of file |
