Skip to content

Commit

Permalink
fix a bug in sighandler
Browse files Browse the repository at this point in the history
  • Loading branch information
fomy committed Jul 30, 2015
1 parent 7b78d56 commit 6231ba3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ def __init__(self, mission_time, iterations, raid_type, raid_num, disk_capacity,

self.bytes_lost_by_raid_failure = 0
self.bytes_lost_by_lse = 0

self.er = 1.0

if fs_trace is not None:
self.filesystem = []
Expand Down Expand Up @@ -114,5 +116,6 @@ def simulate(self):

# finished, return results
# the format of result:
self.er = 1.0*self.bytes_lost_by_raid_failure/self.bytes_lost_by_lse
return (self.samples, self.raid_failure_count, self.sector_error_count, self.iterations,
self.dr, 1.0*self.bytes_lost_by_raid_failure/self.bytes_lost_by_lse)
self.dr, self.er)

0 comments on commit 6231ba3

Please sign in to comment.