Committed v3.0.0

This commit is contained in:
MickMake 2022-12-15 10:15:14 +11:00
parent ec9386590f
commit 062d850bf0
2 changed files with 7 additions and 3 deletions

8
.idea/workspace.xml generated
View File

@ -4,7 +4,11 @@
<option name="autoReloadType" value="ALL" />
</component>
<component name="ChangeListManager">
<list default="true" id="76adadc9-ae71-42a6-82a1-66dbc8ecb14c" name="Changes" comment="" />
<list default="true" id="76adadc9-ae71-42a6-82a1-66dbc8ecb14c" name="Changes" comment="">
<change beforePath="$PROJECT_DIR$/.goreleaser.yml" beforeDir="false" afterPath="$PROJECT_DIR$/.goreleaser.yml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/iSolarCloud/AppService/getPowerStationData/data.go" beforeDir="false" afterPath="$PROJECT_DIR$/iSolarCloud/AppService/getPowerStationData/data.go" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
@ -361,7 +365,7 @@
</line-breakpoint>
<line-breakpoint enabled="true" type="DlvLineBreakpoint">
<url>file://$PROJECT_DIR$/iSolarCloud/AppService/getPowerStationData/data.go</url>
<line>98</line>
<line>100</line>
<option name="timeStamp" value="7299" />
</line-breakpoint>
<line-breakpoint enabled="true" type="DlvLineBreakpoint">

View File

@ -73,7 +73,7 @@ func (e *EndPoint) GetData() api.DataMap {
switch {
case e.Request.DateType.Match(valueTypes.DateTypeDay):
count := len(e.Response.ResultData.P34048List)
dur := time.Duration(int(time.Hour * 24) / count)
dur := time.Duration((float64(time.Hour) * 24) / float64(count))
r = e.Request.DateId.GetRanges(count, dur, valueTypes.DateTimeLayout)
t = "Hour"