Skip to content

Commit

Permalink
Bugfix: Cloud activty timestamp is incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
danesparza committed Aug 5, 2017
1 parent b061243 commit e179f3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sensordata/collect_linux_arm.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ func CollectAndProcess(ctx context.Context) {
timeStart = time.Now()

// Track the activity:
newActivity := data.Activity{Type: data.ApplianceRunning}
newActivity := data.Activity{Type: data.ApplianceRunning, Timestamp: time.Now()}
activityDB.Add(newActivity)
trackActivity(newActivity, configDB)
}
Expand All @@ -210,7 +210,7 @@ func CollectAndProcess(ctx context.Context) {
runningTime := time.Since(timeStart)

// Track the activity:
newActivity := data.Activity{Type: data.ApplianceStopped}
newActivity := data.Activity{Type: data.ApplianceStopped, Timestamp: time.Now()}
activityDB.Add(newActivity)
trackActivity(newActivity, configDB)

Expand Down

0 comments on commit e179f3c

Please sign in to comment.