ganglia/ganglia-web — pull request #110 by reznor (2012-07-05 21:14:58+00:00)
Title: graph.php: Fix 2 bugs; Add 1 new feature.

I discovered these 2 bugs (and added the 1 feature) while trying to write a Cubism.js (https://github.com/square/cubism) source for GangliaWeb.

I see that $cs and $ce are used in a bunch of other files as well, but I haven't changed those references to $user['cs'] and $user['ce'] - perhaps I am missing something, and things just work in those cases (I doubt it, but I haven't tried to test those cases), but this note is primarily a caution that larger-scale changes are likely required to truly make the custom start and end times take effect everywhere.

The 'job' entry in $conf['time_ranges'] is required because there is a check to that effect in get_context.php - I think a value of 0 is suitable because 'r=job' only appears to make sense when the 'jr' query arg is also specified; you could, if this default value of 0 feels iffy, also set it to 3600.