]> projects.mako.cc - selectricity-live/blobdiff - app/controllers/graph_controller.rb
Removed the Gruff plugin from vendor/plugins. It seems to be working from the gem...
[selectricity-live] / app / controllers / graph_controller.rb
index 7b593cc99a66c3d6732651cdf1588d8e80c1f415..e7668ff38ed27e036d9710ae5784a19569304985 100644 (file)
@@ -150,17 +150,17 @@ class GraphController < ApplicationController
       labels_hash[0] = starttime.min.to_s
       labels_hash[(numcols/2)-1] = (starttime + (timedelta/2)).min.to_s
       labels_hash[numcols-1] = Time.now.min.to_s
-      interval_type = "Minutes"
+      interval_type = "Minute of the Hour"
     elsif timedelta < 2.days #more than 2 hours means use hours for labels
       labels_hash[0] = starttime.hour.to_s
       labels_hash[(numcols/2)-1] = (starttime + (timedelta/2)).hour.to_s
       labels_hash[numcols-1] = Time.now.hour.to_s
-      interval_type = "Hours"
+      interval_type = "Hour of the Day on 24 hour scale"
     else #more than 2 days means use dates for labels
       labels_hash[0] = (Date.parse(starttime.to_s)).to_s
       labels_hash[(numcols/2)-1] = (Date.parse(starttime + (timedelta/2))).to_s
       labels_hash[numcols-1] = (Date.today).to_s
-      interval_type = "Days"
+      interval_type = "The Date"
     end
     
     # Make sure to return an array for data and hash for labels

Benjamin Mako Hill || Want to submit a patch?