Sha256: 20c35e050fb7cfceaa096a03e7238831dcdd6c03dbce6687531444c46ea3623e

Contents?: true

Size: 348 Bytes

Versions: 2

Compression:

Stored size: 348 Bytes

Contents

class Dashboard
	constructor: () ->

	getCpuProc: () ->
	$.get "/top_cpu", (data) ->
	  total = data.length
	  return_data = ''
	  i = 0

	  while i <= total
	    return_data += "<li>" + data[i] + "</li>"  unless typeof data[i] is "undefined"
	    i++
	  $('#cpu_list').html return_data
	  return



dashboard = new Dashboard
dashboard.getCpuProc()

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
miranda-0.0.3 public/coffeescript/home.coffee
miranda-0.0.2 public/coffeescript/home.coffee