Skip to content

Commit

Permalink
feat: Bigger buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
Kimiblock committed Feb 22, 2024
1 parent c13b893 commit 1ad6585
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snotify.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func monitorDbus(path, member string) {
return
}

buf := make([]byte, 512) // Limit the line length to 1024 bytes
buf := make([]byte, 2048) // Limit the line length to 2048 bytes

for {
n, err := stdout.Read(buf)
Expand Down Expand Up @@ -54,7 +54,7 @@ func monitorDbus(path, member string) {
}

func playSoundOnNewLine() {
ticker := time.NewTicker(500 * time.Millisecond)
ticker := time.NewTicker(600 * time.Millisecond)
defer ticker.Stop()

for range ticker.C {
Expand Down

0 comments on commit 1ad6585

Please sign in to comment.