From 66122778a38773c8a5d5ae8fb7198e0e94103f23 Mon Sep 17 00:00:00 2001 From: Jason Kulatunga Date: Fri, 18 Sep 2020 20:27:35 -0600 Subject: [PATCH] only the firmware can really change between scans. Lets slim down the metadata update. --- webapp/backend/pkg/models/db/device.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/webapp/backend/pkg/models/db/device.go b/webapp/backend/pkg/models/db/device.go index 8721cea..96e81d4 100644 --- a/webapp/backend/pkg/models/db/device.go +++ b/webapp/backend/pkg/models/db/device.go @@ -152,16 +152,6 @@ func (dv *Device) ApplyMetadataRules() error { } func (dv *Device) UpdateFromCollectorSmartInfo(info collector.SmartInfo) error { - dv.InterfaceSpeed = info.InterfaceSpeed.Current.String dv.Firmware = info.FirmwareVersion - dv.RotationSpeed = info.RotationRate - dv.Capacity = info.UserCapacity.Bytes - dv.FormFactor = info.FormFactor.Name - dv.DeviceProtocol = info.Device.Protocol - dv.DeviceType = info.Device.Type - if len(info.Vendor) > 0 { - dv.Manufacturer = info.Vendor - } - return nil }