Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add graph binary

  • Loading branch information...
commit 98056e3ccb79ad1d6807f7b9b64d356e0d7c9739 1 parent 204cd72
@mojombo authored
Showing with 13 additions and 0 deletions.
  1. +11 −0 bin/graph
  2. +2 −0  lib/glowstick/glowstick.rb
View
11 bin/graph
@@ -0,0 +1,11 @@
+#!/usr/bin/env ruby
+
+$:.unshift(File.join(File.dirname(__FILE__), *%w[.. lib]))
+
+require 'glowstick'
+
+graph = Glowstick::Graph.new
+
+File.read("/Users/tom/mem.log").split("\n").each { |x| graph.add(x.to_i) }
+
+Glowstick.new(nil).start
View
2  lib/glowstick/glowstick.rb
@@ -64,6 +64,8 @@ def keyboard(key, x, y)
end
def idle
+ return unless @handler.respond_to?(:idle)
+
should_draw = @handler.idle
if should_draw
glutPostRedisplay
Please sign in to comment.
Something went wrong with that request. Please try again.