Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alireza0 committed May 23, 2024
1 parent 2ac13ef commit 9968f38
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions backend/cronjob/delStatsJob.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ func (s *DelStatsJob) Run() {
logger.Warning("Deleting old statistics failed: ", err)
return
}
logger.Debug("Stats older than ", s.trafficAge, " days were deleted")
}
10 changes: 5 additions & 5 deletions frontend/src/views/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -252,27 +252,27 @@ const subShowInfo = computed({
const webPort = computed({
get: () => { return settings.value.webPort.length>0 ? parseInt(settings.value.webPort) : 2095 },
set: (v:number) => { settings.value.webPort = v.toString() }
set: (v:number) => { settings.value.webPort = v>0 ? v.toString() : "2095" }
})
const sessionMaxAge = computed({
get: () => { return settings.value.sessionMaxAge.length>0 ? parseInt(settings.value.sessionMaxAge) : 0 },
set: (v:number) => { settings.value.sessionMaxAge = v.toString() }
set: (v:number) => { settings.value.sessionMaxAge = v>0 ? v.toString() : "0" }
})
const trafficAge = computed({
get: () => { return settings.value.trafficAge.length>0 ? parseInt(settings.value.trafficAge) : 0 },
set: (v:number) => { settings.value.trafficAge = v.toString() }
set: (v:number) => { settings.value.trafficAge = v>0 ? v.toString() : "0" }
})
const subPort = computed({
get: () => { return settings.value.subPort.length>0 ? parseInt(settings.value.subPort) : 2096 },
set: (v:number) => { settings.value.subPort = v.toString() }
set: (v:number) => { settings.value.subPort = v>0 ? v.toString() : "2096" }
})
const subUpdates = computed({
get: () => { return settings.value.subUpdates.length>0 ? parseInt(settings.value.subUpdates) : 12 },
set: (v:number) => { settings.value.subUpdates = v.toString() }
set: (v:number) => { settings.value.subUpdates = v>0 ? v.toString() : "12" }
})
const stateChange = computed(() => {
Expand Down

0 comments on commit 9968f38

Please sign in to comment.