From bb97d7ac2f0c1256ec6a49abfb6d7a0042ea11c9 Mon Sep 17 00:00:00 2001 From: dan Date: Thu, 9 Nov 2023 01:05:23 +0000 Subject: [PATCH] snmp update --- .../RSUHealthMonitorPlugin/src/RSUHealthMonitorPlugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/v2i-hub/RSUHealthMonitorPlugin/src/RSUHealthMonitorPlugin.cpp b/src/v2i-hub/RSUHealthMonitorPlugin/src/RSUHealthMonitorPlugin.cpp index e8dda278b..2afe110a6 100755 --- a/src/v2i-hub/RSUHealthMonitorPlugin/src/RSUHealthMonitorPlugin.cpp +++ b/src/v2i-hub/RSUHealthMonitorPlugin/src/RSUHealthMonitorPlugin.cpp @@ -153,8 +153,8 @@ namespace RSUHealthMonitor if (boost::iequals("rsuGpsOutputString", config.field)) { auto gps = ParseGPS(response_str); - rsuStatuJson["rsuGpsOutputStringLatitude"] = gps[0]; - rsuStatuJson["rsuGpsOutputStringLongitude"] = gps[1]; + rsuStatuJson["rsuGpsOutputStringLatitude"] = gps.begin()->first; + rsuStatuJson["rsuGpsOutputStringLongitude"] = gps.begin()->second; } else {