Show correct CPU usage when the process is terminated early (#2445)
Show correct CPU usage when the process is terminated early (#2445)

When the process is terminated its CPU time calculation could be incorrect since 
gopsutil sometimes returns CPU times that are lower than previously returned times.
This was resulting in negative CPU time delta, which was then converted to uint32
percent resulting in overflowing of the negative number into large positive number
and very large incorrect CPU percentages shown.

This changes fixes the problem by ensuring the calculated CPU time delta is never
negative.
open-telemetry/opentelemetry-collector,open-telemetry/opentelemetry-collector-contrib,open-telemetry/opentelemetry-collector,open-telemetry/opentelemetry-collector,open-telemetry/opentelemetry-collector-contrib