From: demx8as6 Date: Fri, 26 Mar 2021 21:07:26 +0000 (+0100) Subject: Wrong time format in VES client scripts X-Git-Tag: 2.2.0~29 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F08%2F5808%2F2;hp=63423756a1c068146a0291737a8edbc65c5b594a;p=oam.git Wrong time format in VES client scripts The time format mapping was changed from ms to µs. IssueID: OAM-180 Change-Id: If7c00d17c5d0d5a49c78bd459055b99b742d0df9 Signed-off-by: demx8as6 --- diff --git a/solution/dev/ves-test-collector/client-scripts-ves-v7/config b/solution/dev/ves-test-collector/client-scripts-ves-v7/config index db1a28f..610ed55 100644 --- a/solution/dev/ves-test-collector/client-scripts-ves-v7/config +++ b/solution/dev/ves-test-collector/client-scripts-ves-v7/config @@ -24,9 +24,9 @@ basicAuthVes=sample1:sample1 ################################################################################ # common generated event settings, please dont touch -timestamp=$(date -u +%s%3N) -timeInS=${timestamp:0:$((${#timestamp}-3))} -timeMs=${timestamp:(-3)} +timestamp=$(date -u +%s%6N) +timeInS=${timestamp:0:$((${#timestamp}-6))} +timeMs=${timestamp:(-6)} eventTime=$(date -u -d @$timeInS +'%Y-%m-%dT%H:%M:%S').$timeMs"Z" eventType="O_RAN_COMPONENT"