Skip to content

Commit

Permalink
fix(linux): remove attributes for active app sensor to avoid memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuar committed Jun 12, 2023
1 parent 7a1289e commit e700db5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/linux/appSensor.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,9 @@ func (s *appSensor) Category() string {

func (s *appSensor) Attributes() interface{} {
switch s.sensorType {
case activeApp:
return newActiveAppDetails(s.State().(string))
// TODO: profile and improve code to avoid memory leak
// case activeApp:
// return newActiveAppDetails(s.State().(string))
case runningApps:
return newRunningAppsDetails(s.sensorValue)
}
Expand Down

0 comments on commit e700db5

Please sign in to comment.