lib/new_relic/agent/utilization/gcp.rb in newrelic_rpm-9.5.0 vs lib/new_relic/agent/utilization/gcp.rb in newrelic_rpm-9.6.0
- old
+ new
@@ -22,13 +22,11 @@
body[MACH_TYPE] = trim_leading(body[MACH_TYPE])
body[ZONE] = trim_leading(body[ZONE])
body
end
- SLASH = '/'.freeze
-
def trim_leading(value)
- value.split(SLASH).last
+ value.split(NewRelic::SLASH).last
end
end
end
end
end