Minor style fixes
This commit is contained in:
parent
268b4ce5bb
commit
bd6c5b20d0
|
@ -128,7 +128,7 @@ func (m *Measurement) WriteSummary(db *sqlx.DB, summary string) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
//AddToResult adds a measurement to a result
|
// AddToResult adds a measurement to a result
|
||||||
func (m *Measurement) AddToResult(db *sqlx.DB, result *Result) error {
|
func (m *Measurement) AddToResult(db *sqlx.DB, result *Result) error {
|
||||||
m.ResultID = result.ID
|
m.ResultID = result.ID
|
||||||
finalPath := filepath.Join(result.MeasurementDir,
|
finalPath := filepath.Join(result.MeasurementDir,
|
||||||
|
|
|
@ -56,7 +56,7 @@ var NettestGroups = map[string]NettestGroup{
|
||||||
}
|
}
|
||||||
err = json.Unmarshal([]byte(m["Ndt"]), &ndtSummary)
|
err = json.Unmarshal([]byte(m["Ndt"]), &ndtSummary)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.WithError(err).Error("failed to unmarshal Dash summary")
|
log.WithError(err).Error("failed to unmarshal NDT summary")
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
summary.Bitrate = dashSummary.Bitrate
|
summary.Bitrate = dashSummary.Bitrate
|
||||||
|
|
Loading…
Reference in New Issue
Block a user