Skip to content

Commit ba8e64b

Browse files
committed
fix(collect): change variable name
1 parent cb72b04 commit ba8e64b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/collector/system.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ func CollectNetwork() (*NetworkInfo, error) {
188188
return &out, nil
189189
}
190190

191-
func CollectBiosID() (*string, error) {
191+
func CollectHostID() (*string, error) {
192192
id, err := host.HostID()
193193
if err != nil {
194194
return nil, fmt.Errorf("failed to get host ID: %w", err)
@@ -223,13 +223,13 @@ func CollectSystem() (*SystemInfo, error) {
223223
return nil, err
224224
}
225225

226-
biosID, err := CollectBiosID()
226+
hostID, err := CollectHostID()
227227
if err != nil {
228228
return nil, err
229229
}
230230

231231
return &SystemInfo{
232-
ID: biosID,
232+
ID: hostID,
233233
OS: os,
234234
CPU: cpu,
235235
RAM: ram,

0 commit comments

Comments
 (0)