Something is causing graph rendering to change between reloads
#### Imported from https://bugs.launchpad.net/bugs/860161

|  |  |
| --- | --- |
| Reported by | [ohlol](https://launchpad.net/~ohlol) |
| Date Created | Sep 27, 2011 |

http://dl.dropbox.com/u/1613178/render1.png
http://dl.dropbox.com/u/1613178/render2.png
http://dl.dropbox.com/u/1613178/render3.png

The only difference beteween these three images is that I hit reload. It's not consistent (sometimes I can reload the same graph several times with no obvious variance).

diff --git a/webapp/graphite/readers/whisper.py b/webapp/graphite/readers/whisper.py
index 1fd71810..09c32c70 100644
--- a/webapp/graphite/readers/whisper.py
+++ b/webapp/graphite/readers/whisper.py
@@ -51,12 +51,12 @@ class WhisperReader(BaseReader):
         end = max(stat(self.fs_path).st_mtime, start)
         return IntervalSet([Interval(start, end)])
 
-    def fetch_data(self, startTime, endTime):
-        return whisper.fetch(self.fs_path, startTime, endTime)
+    def fetch_data(self, startTime, endTime, now=None):
+        return whisper.fetch(self.fs_path, startTime, endTime, now=now)
 
-    def fetch(self, startTime, endTime):
+    def fetch(self, startTime, endTime, now=None, requestContext=None):
         try:
-            data = self.fetch_data(startTime, endTime)
+            data = self.fetch_data(startTime, endTime, now=now)
         except IOError:
             log.exception("Failed fetch of whisper file '%s'" % self.fs_path)
             return None
@@ -88,9 +88,9 @@ class GzippedWhisperReader(WhisperReader):
                 fh.close()
         return self.meta_info
 
-    def fetch_data(self, startTime, endTime):
+    def fetch_data(self, startTime, endTime, now=None):
         fh = gzip.GzipFile(self.fs_path, 'rb')
         try:
-            return whisper.file_fetch(fh, startTime, endTime)
+            return whisper.file_fetch(fh, startTime, endTime, now=now)
         finally:
             fh.close()
['webapp/graphite/readers/whisper.py']