Sha256: d61f92b8be087ccdea988c8ffc4b714b268773d0371ba0da4d65c2c0977cb714

Contents?: true

Size: 513 Bytes

Versions: 1

Compression:

Stored size: 513 Bytes

Contents

#!/usr/bin/ruby

#License: (MIT), Copyright (C) 2013 Author Phil Chen, Contributor Ruben Espinosa

require 'usagewatch_ext'

usw =  Usagewatch

puts "#{usw.uw_diskused} Gigabytes Used"
puts "#{usw.uw_diskused_perc} Percentage of Gigabytes Used"
puts "#{usw.uw_memused}% Active Memory Used"
puts "#{usw.uw_cpuused}% CPU Used"
puts "#{usw.uw_load} Average System Load Of The Past Minute"
puts "Top Ten Processes By CPU Consumption: #{usw.uw_cputop}"
puts "Top Ten Processes By Memory Consumption: #{usw.uw_memtop}"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
usagewatch_ext-0.0.2 examples/mac_example.rb