Skip to content

Commit

Permalink
fix: limits the minimum number of slow logs to be displayed
Browse files Browse the repository at this point in the history
  • Loading branch information
tiny-craft committed Mar 26, 2024
1 parent d1958a3 commit c0fdfc0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions backend/services/browser_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -2561,6 +2561,7 @@ func (b *browserService) GetSlowLogs(server string, num int64) (resp types.JSRes
resp.Msg = err.Error()
return
}
num = max(1, num)

client, ctx := item.client, item.ctx
var logs []redis.SlowLog
Expand Down
1 change: 1 addition & 0 deletions frontend/src/components/content_value/ContentSlog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ const onListLimitChanged = (limit) => {
<n-form-item :label="$t('slog.limit')">
<n-input-number
v-model:value="data.listLimit"
:min="1"
:max="9999"
style="width: 120px"
@update:value="onListLimitChanged" />
Expand Down

0 comments on commit c0fdfc0

Please sign in to comment.