Skip to content

Instantly share code, notes, and snippets.

@Fitblip
Created April 13, 2012 22:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fitblip/2380555 to your computer and use it in GitHub Desktop.
Save Fitblip/2380555 to your computer and use it in GitHub Desktop.
Sulley issue #19
diff --git a/sessions.py b/sessions.py
index 21bd1aa..bf025d9 100644
--- a/sessions.py
+++ b/sessions.py
@@ -383,7 +383,7 @@ class session (pgraph.graph):
self.total_mutant_index += 1
# if we've hit the restart interval, restart the target.
- if self.restart_interval and self.total_mutant_index % self.restart_interval == 0:
+ if self.restart_interval and self.total_mutant_index % self.restart_interval == 0 and self.total_mutant_index > self.skip:
self.log("restart interval of %d reached" % self.restart_interval)
self.restart_target(target)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment