VOL-3791: Fix KPI_Event2 Metric timestamps (should be seconds since epoch)

Change-Id: I3812f646d711547fa205f00290992be8ecd842c5
diff --git a/internal/pkg/core/statsmanager.go b/internal/pkg/core/statsmanager.go
index e13abed..c7b149f 100755
--- a/internal/pkg/core/statsmanager.go
+++ b/internal/pkg/core/statsmanager.go
@@ -579,7 +579,7 @@
 	raisedTs := time.Now().UnixNano()
 	mmd := voltha.MetricMetaData{
 		Title:    statType,
-		Ts:       float64(raisedTs),
+		Ts:       float64(raisedTs) / (1.0 * 1e9),
 		Context:  metricsContext,
 		DeviceId: devID,
 	}
@@ -589,7 +589,7 @@
 
 	ke.SliceData = []*voltha.MetricInformation{&metricInfo}
 	ke.Type = voltha.KpiEventType_slice
-	ke.Ts = float64(time.Now().UnixNano())
+	ke.Ts = float64(time.Now().UnixNano()) / (1.0 * 1e9)
 
 	if err := StatMgr.Device.EventProxy.SendKpiEvent(ctx, "STATS_EVENT", &ke, voltha.EventCategory_EQUIPMENT, volthaEventSubCatgry, raisedTs); err != nil {
 		logger.Errorw(ctx, "failed-to-send-stats", log.Fields{"err": err})