Skip to content

Commit

Permalink
Merge pull request #92 from lacework/afiune/bug-fix/78
Browse files Browse the repository at this point in the history
fix(api): parsing event details 'cpu_percentage'
  • Loading branch information
afiune authored May 4, 2020
2 parents 5bedf53 + 2146ecb commit c28ee20
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion api/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ type eventProcessEntity struct {
ProcessId int32 `json:"process_id"`
ProcessStartTime time.Time `json:"process_start_time"`
Cmdline string `json:"cmdline"`
CpuPercentage int32 `json:"cpu_percentage"`
CpuPercentage float32 `json:"cpu_percentage"`
}

type eventFileDataHashEntity struct {
Expand Down
4 changes: 2 additions & 2 deletions api/events_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,14 +274,14 @@ func eventDetailsResponse(id string) string {
},
{
"CMDLINE": "chef-client worker: ppid=5328;start=19:54:08;",
"CPU_PERCENTAGE": 0,
"CPU_PERCENTAGE": 0.1,
"HOSTNAME": "default-centos-8.vagrantup.com",
"PROCESS_ID": 5346,
"PROCESS_START_TIME": "2020-04-20T19:54:08Z"
},
{
"CMDLINE": "chef-client worker: ppid=12057;start=19:47:54;",
"CPU_PERCENTAGE": 0,
"CPU_PERCENTAGE": 0.87,
"HOSTNAME": "default-centos-8.vagrantup.com",
"PROCESS_ID": 12062,
"PROCESS_START_TIME": "2020-04-20T19:47:54Z"
Expand Down
2 changes: 1 addition & 1 deletion scripts/release_containers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ distros=(
)
for dist in "${distros[@]}"; do
log "releasing container for ${dist}"
docker build -f "cli/images/${dist}/Dockerfile" --no-cache -t "${repository}:ubi-8" .
docker build -f "cli/images/${dist}/Dockerfile" --no-cache -t "${repository}:${dist}" .
docker push "${repository}:${dist}"
done

Expand Down

0 comments on commit c28ee20

Please sign in to comment.