sensu-plugins/sensu-plugins-vmstats

View on GitHub

Showing 1 of 1 total issue

Method run has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def run
    result = convert_integers(`vmstat 1 2|tail -n1`.split(' '))
    timestamp = Time.now.to_i
    metrics = {
      procs: {
Severity: Minor
Found in bin/metrics-vmstat.rb - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language