Ensure %CPU is available when disk quota disabled

The stat_collector task coded with the expectation that disk statistics
would always be available but when disk quotas are not enabled for
warden, the statistics are not populated and the collector would take an
exception dereferencing the nil message.  That exception would prevent
cpu statistics code from executing resulting in cpu data always
returning 0%.

This adds a check for nil on the disk usage assignment.
Merge pull request #87 from sykesm/cpu-not-reported

Ensure %CPU is available when disk quota disabled
Consistently use bytes for memory statistics

For some reason, stat_collector assumed rss was reported in kilobytes
instead of bytes and multiplied it by 1024.  The rest of the code then
started to divide the 'used_memory_in_bytes' by 1024 to really get bytes
back.  Very odd.

This change simply removes the hacks that multiply and divide to get
expected data.
enforce schema in dea.advertise message
Bump loggregator_emitter gem to 3.0

Signed-off-by: John Tuley <jtuley@pivotallabs.com>
Add CPU limit for staging task and running instance

[#62173454]

Signed-off-by: Eric Malm <emalm@pivotallabs.com>
Merge pull request #92 from cloudfoundry/remove_src_type

Bump loggregator_emitter gem to 3.0
Bump warden

Warden shortlog:

Eric Malm (1):
  Revert "Increase niceness of warden containers by 10"

Signed-off-by: Eric Malm <emalm@pivotallabs.com>
Fix staging task spec.

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
allow health check timeout to be configurabled through app attributes
Rename maximum_health_check_timeout to default_health_check_timeout

* Set the default value for default_health_check_timeout in config

Signed-off-by: Aakash Shah <ashah@mines.edu>
Save app health_check_timeout to snapshot

Signed-off-by: Aakash Shah <ashah@mines.edu>
updated license and notice file
Use ruby 1.9 hashes

Signed-off-by: Eric Malm <emalm@pivotallabs.com>
Update rubyzip gem (:test group)

Signed-off-by: Eric Malm <emalm@pivotallabs.com>
Remove TODOs

Signed-off-by: Eric Malm <emalm@pivotallabs.com>
Remove rspec monkey patch

  * kernel.srand issue has been fixed

[#62177292]

Signed-off-by: Eric Malm <emalm@pivotallabs.com>
Log instance index when registering/unregistering instance

[#61267804]

Signed-off-by: Johannes Tuchscherer <jtuchscherer@pivotallabs.com>
Merge pull request #88 from sykesm/consistently-use-bytes-for-memory

Consistently use bytes for memory statistics
Add warden update instructions