Skip to content

Commit 7e502d5

Browse files
committed
fix(update): Adjust update check timing condition for improved version retrieval
1 parent 54a3429 commit 7e502d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/sling/sling_update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ func checkUpdate() {
221221
)
222222
respMap := map[string]string{}
223223
g.JSONUnmarshal(respB, &respMap)
224-
if time.Now().Second()%4 != 0 && len(respMap) > 0 {
224+
if time.Now().Second()%3 == 0 && len(respMap) > 0 {
225225
updateVersion = respMap["version_latest"]
226226
if isDevChannel {
227227
if core.VersionSlash() != updateVersion && updateVersion != "" {

0 commit comments

Comments
 (0)