kubeedge / mappers-go

KubeEdge Device Mappers written in go
Apache License 2.0
45 stars 64 forks source link

Update client.go #83

Closed alongL closed 1 year ago

alongL commented 1 year ago

strconv.FormatFloat(v.Float(), 'E', -1, 32) will convert float to some 6E+01 string. It can not be recongized by edgecore. this value won't be updated to cloudcore. we should convert float to just like 61.25 string.

Waste a lot of my time.

reference:
https://qa.1r1g.com/sf/ask/2369649831/

sailorvii commented 1 year ago

Many thanks for the fix. /approved /lgtm

kubeedge-bot commented 1 year ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sailorvii

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/kubeedge/mappers-go/blob/main/OWNERS)~~ [sailorvii] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment