mirror of https://bitbucket.org/ausocean/av.git
mts: GetLocation()=>Location() and GetTimeStamp()=>TimeStamp()
This commit is contained in:
parent
c76c4aafb9
commit
f432950c28
|
@ -140,7 +140,7 @@ func (tl *timeLocation) SetTimeStamp(t uint64) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetTimeStamp returns the location of a TimeLocation.
|
// GetTimeStamp returns the location of a TimeLocation.
|
||||||
func (tl *timeLocation) GetTimeStamp() uint64 {
|
func (tl *timeLocation) TimeStamp() uint64 {
|
||||||
tl.RLock()
|
tl.RLock()
|
||||||
defer tl.RUnlock()
|
defer tl.RUnlock()
|
||||||
return tl.time
|
return tl.time
|
||||||
|
@ -154,7 +154,7 @@ func (tl *timeLocation) SetLocation(l string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetLocation returns the location of a TimeLocation.
|
// GetLocation returns the location of a TimeLocation.
|
||||||
func (tl *timeLocation) GetLocation() string {
|
func (tl *timeLocation) Location() string {
|
||||||
tl.RLock()
|
tl.RLock()
|
||||||
defer tl.RUnlock()
|
defer tl.RUnlock()
|
||||||
return tl.location
|
return tl.location
|
||||||
|
@ -294,11 +294,11 @@ func (e *Encoder) writePSI() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update pmt table time and location.
|
// Update pmt table time and location.
|
||||||
err = psi.UpdateTime(pmtTable, MetaData.GetTimeStamp())
|
err = psi.UpdateTime(pmtTable, MetaData.TimeStamp())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
err = psi.UpdateLocation(pmtTable, MetaData.GetLocation())
|
err = psi.UpdateLocation(pmtTable, MetaData.Location())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue