Graphite client explodes with millisecond resolution timestamps

We're integrating Riemann with our internal apps and found that when we send events with timestamps in ms, the graphite client blows up when it attempts to cast the timestamp to int as the value > Integer/MAX_VALUE. This simply checks for timestamps > Integer/MAX_VALUE and divides by 1000.