Skip to content

Commit 7e63b3c

Browse files
author
Colman Yau
committed
Update typo in equals/equal
1 parent 0d39944 commit 7e63b3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

codeguru_profiler_agent/model/profile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def end(self, value):
4545
self._validate_positive_number(value)
4646
if value < self.start:
4747
raise ValueError(
48-
"Profile end value must be greater than or equals to {}, got {}".format(self.start, value))
48+
"Profile end value must be greater than or equal to {}, got {}".format(self.start, value))
4949
self._end = value
5050
# this is the total cpu time spent in this application since start, not just the overhead
5151
self.cpu_time_seconds = time.process_time() - self._start_process_time
@@ -140,6 +140,6 @@ def average_thread_weight(self):
140140
def __str__(self):
141141
return "Profile(profiling_group_name=" + self.profiling_group_name \
142142
+ ", start=" + to_iso(self.start) \
143-
+ ', end=' + "not set" if self.end is None else to_iso(self.end) \
143+
+ ', end=' + "none" if self.end is None else to_iso(self.end) \
144144
+ ', duration_ms=' + str(self.get_active_millis_since_start()) \
145145
+ ')'

0 commit comments

Comments
 (0)