Skip to content

Commit

Permalink
flip boolean, fix incorrect logic
Browse files Browse the repository at this point in the history
  • Loading branch information
undg committed Feb 11, 2025
1 parent d5fd489 commit 1f49e17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pactl/pactl.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ func parseSources(output string) Source {
desc := descRe.FindStringSubmatch(output)[1]
volume, _ := strconv.Atoi(volumeRe.FindStringSubmatch(output)[1])
muted := muteRe.FindStringSubmatch(output)[1] == "yes"
monitored := monitorRe.FindStringSubmatch(output)[1] == "n/a"
monitored := monitorRe.FindStringSubmatch(output)[1] != "n/a"
monitor := monitorRe.FindStringSubmatch(output)[1]

return Source{
Expand Down

0 comments on commit 1f49e17

Please sign in to comment.