Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func GetChartTemplate(chartType string) (*template.Template, error) {
<input type='datetime-local' id='end' value='{{.End}}'></input>
<button onClick="refreshChart(); return false;" class="button">Refresh</button>
</div>
<div id='hatchetChart' style="width: 100%; clear: left;"></div>
<div id='hatchetChart' class='chart' style="clear: left;"></div>

</body></html>`

Expand Down
2 changes: 1 addition & 1 deletion logv2.go
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ func isAppDriver(client *RemoteClient) bool {
driver := client.Driver
version := client.Version

if driver == "NetworkInterfaceTL" || driver == "MongoDB Internal Client" {
if strings.HasPrefix(driver, "NetworkInterfaceTL") || driver == "MongoDB Internal Client" {
return false
} else if driver == "mongo-go-driver" && strings.HasSuffix(version, "-cloud") {
return false
Expand Down
7 changes: 7 additions & 0 deletions template.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,13 @@ const headers = `<!DOCTYPE html>
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.chart {
background-color: var(--row-color);;
border: solid;
padding: 10px 10px;
margin: 10px 10px;
border-radius: .5em;
}
</style>
<script>
function loadData(url) {
Expand Down