Changeset 140652 in webkit
- Timestamp:
- Jan 23, 2013 9:49:31 PM (11 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r140641 r140652 1 2013-01-23 Alan Cutter <alancutter@chromium.org> 2 3 QueueStatusServer crashes in production on next-patch 4 https://bugs.webkit.org/show_bug.cgi?id=107775 5 6 Reviewed by Adam Barth. 7 8 Replaced Python 2.5 incompatible call to timedelta.total_seconds(). 9 10 * QueueStatusServer/app.yaml: 11 * QueueStatusServer/model/patchlog.py: 12 (PatchLog.calculate_wait_duration): 13 (PatchLog.calculate_process_duration): 14 (PatchLog): 15 (PatchLog._time_delta_to_seconds): 16 1 17 2013-01-23 Ryosuke Niwa <rniwa@webkit.org> 2 18 -
trunk/Tools/QueueStatusServer/app.yaml
r140513 r140652 1 1 application: webkit-commit-queue 2 version: 107 612# Bugzilla bug ID of last major change2 version: 107775 # Bugzilla bug ID of last major change 3 3 runtime: python 4 4 api_version: 1 -
trunk/Tools/QueueStatusServer/model/patchlog.py
r140513 r140652 50 50 def calculate_wait_duration(self): 51 51 time_delta = datetime.utcnow() - self.date 52 self.wait_duration = int( time_delta.total_seconds())52 self.wait_duration = int(self._time_delta_to_seconds(time_delta)) 53 53 54 54 def calculate_process_duration(self): 55 55 if self.wait_duration: 56 56 time_delta = datetime.utcnow() - self.date 57 self.process_duration = int(time_delta.total_seconds()) - self.wait_duration 57 self.process_duration = int(self._time_delta_to_seconds(time_delta)) - self.wait_duration 58 59 # Needed to support Python 2.5's lack of timedelta.total_seconds(). 60 @classmethod 61 def _time_delta_to_seconds(cls, time_delta): 62 return time_delta.seconds + time_delta.days * 24 * 3600
Note: See TracChangeset
for help on using the changeset viewer.