Skip to content

Commit

Permalink
chore(epoch): Removing the Epoch time from the reports (#41)
Browse files Browse the repository at this point in the history
Remvoing the Epoch time from the reports
  • Loading branch information
Jacobbrewer1 authored Jan 25, 2024
1 parent 77432bf commit df6e1b0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
12 changes: 8 additions & 4 deletions cmd/summary/assets/index.gohtml
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@
<td>{{.Fqdn}}</td>
<td>{{.Env}}</td>
<td>{{.State}}</td>
<td data-text="{{.Epoch}}" data-sort-value="{{.Epoch}}" title="{{.ExecTime}}">{{prettyDuration .TimeSince}}</td>
<td data-text="{{.ExecTime}}" data-sort-value="{{.ExecTime}}"
title="{{.ExecTime}}">{{prettyDuration .TimeSince}}</td>
</tr>
{{end}}
</table>
Expand All @@ -198,7 +199,8 @@
<td>{{.Fqdn}}</td>
<td>{{.Env}}</td>
<td>{{.State}}</td>
<td data-text="{{.Epoch}}" data-sort-value="{{.Epoch}}" title="{{.ExecTime}}">{{prettyDuration .TimeSince}}</td>
<td data-text="{{.ExecTime}}" data-sort-value="{{.ExecTime}}"
title="{{.ExecTime}}">{{prettyDuration .TimeSince}}</td>
</tr>
{{end}}
{{end}}
Expand All @@ -222,7 +224,8 @@
<td>{{.Fqdn}}</td>
<td>{{.Env}}</td>
<td>{{.State}}</td>
<td data-text="{{.Epoch}}" data-sort-value="{{.Epoch}}" title="{{.ExecTime}}">{{prettyDuration .TimeSince}}</td>
<td data-text="{{.ExecTime}}" data-sort-value="{{.ExecTime}}"
title="{{.ExecTime}}">{{prettyDuration .TimeSince}}</td>
</tr>
{{end}}
{{end}}
Expand All @@ -246,7 +249,8 @@
<td>{{.Fqdn}}</td>
<td>{{.Env}}</td>
<td>{{.State}}</td>
<td data-text="{{.Epoch}}" data-sort-value="{{.Epoch}}" title="{{.ExecTime}}">{{prettyDuration .TimeSince}}</td>
<td data-text="{{.ExecTime}}" data-sort-value="{{.ExecTime}}"
title="{{.ExecTime}}">{{prettyDuration .TimeSince}}</td>
</tr>
{{end}}
{{end}}
Expand Down
1 change: 0 additions & 1 deletion pkg/entities/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ type PuppetRun struct {
State State `json:"state" bson:"state"`
ExecTime Datetime `json:"exec_time" bson:"exec_time"`
Runtime Duration `json:"runtime" bson:"runtime"`
Epoch string `json:"epoch" bson:"epoch"`
TimeSince Duration `json:"time_since" bson:"time_since"`
}

Expand Down

0 comments on commit df6e1b0

Please sign in to comment.