fix double use of name
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user