fix double use of name

This commit is contained in:
Adrian Zürcher
2025-05-01 12:52:51 +02:00
parent 0fe813acd9
commit 7d6b09cf11

View File

@@ -131,8 +131,8 @@ func (d *DBMHandler) ImportDatapoints(dps ...models.Datapoint) error {
if err != nil { if err != nil {
return err return err
} }
dp := d.QueryDatapoints(1, "System:Datapoints") dps := d.QueryDatapoints(1, "System:Datapoints")
d.UpdateDatapointValue("System:Datapoints", dp[0].GetValueUint64()+1) d.UpdateDatapointValue("System:Datapoints", dps[0].GetValueUint64()+1)
} }
return nil return nil
} }