Skip to content

Commit

Permalink
Merge pull request #68 from UlfBj/master
Browse files Browse the repository at this point in the history
ts dc fix
  • Loading branch information
UlfBj authored Jan 6, 2025
2 parents ff8eace + 6aeeec9 commit 11617fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/vissv2server/wsMgr/wsMgr.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,10 +335,10 @@ func replaceTs(respMessage string, messageTs string, tsList []string) string {
signedTimeDiffStr := signedTimeDiff(strconv.Itoa(int(diffMs)), diffMs)
if preIndex == 0 {
respMessage = strings.Replace(respMessage[:postIndex], tsList[i], signedTimeDiffStr, 1) + respFraction
postIndex -= len(tsList[i]) - len(signedTimeDiffStr)
} else {
respMessage = respFraction + strings.Replace(respMessage[:postIndex], tsList[i], signedTimeDiffStr, 1)
respMessage = respFraction + strings.Replace(respMessage[preIndex:], tsList[i], signedTimeDiffStr, 1)
}
postIndex -= len(tsList[i]) - len(signedTimeDiffStr)
}
return respMessage
}
Expand Down

0 comments on commit 11617fa

Please sign in to comment.