Skip to content

Instantly share code, notes, and snippets.

/ruby.rb Secret

Created November 3, 2015 13:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/ae4ca85d8eb1bbcb16b8 to your computer and use it in GitHub Desktop.
Save anonymous/ae4ca85d8eb1bbcb16b8 to your computer and use it in GitHub Desktop.
stats = JSON.parse(stats_string)
@stats[:disk_io_read] = stats["blkio_stats"]["io_service_bytes_recursive"].first["value"].to_f / 1024.0 / 1024.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment