INNER CODE UNIT · Go
mem
simagix/hatchet · audit_template.go:460
mem := milli * (1024 * 1024)
html += printer.Sprintf(", <mark>which could take up about %s of memory</mark>. ", gox.GetStorageSize(float64(mem)))
} else {
html += ". "
}
} else if doc.Name == "maxMilli" && doc.Values[0].(int) > 0 {
milli := doc.Values[0].(int)
html += "The slowest operation took "
if milli < 1000 {
html += printer.Sprintf("<span style='color: orange;'>%d</span> milliseconds. ", doc.Values[0])
} else {
seconds := float64(milli) / 1000
html += printer.Sprintf("<span style='color: orange;'>%s</span>. ", gox.GetDurationFromSeconds(seconds))
}
} else if doc.Name == "avgMilli" && doc.Values[0].(int) > 0 {
milli := doc.Values[0].(int)
html += printer.Sprintf("Moreover, the average operation time was <span style='color: orange;'>%d</span> milliseconds", milli)
if milli > 100 {