#NEWLINE# def _update_last_part_moves( self ) : #NEWLINE# #INDENT# "\n        Updates how many hours ago each partition was moved based on the\n        current time. The builder won't move a partition that has been moved\n        more recently than min_part_hours.\n        " #NEWLINE# elapsed_hours = ( int ( ( time ( ) - self . _last_part_moves_epoch ) ) / 3600 ) #NEWLINE# if ( elapsed_hours <= 0 ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# for part in range ( self . parts ) : #NEWLINE# #INDENT# last_plus_elapsed = ( self . _last_part_moves [ part ] + elapsed_hours ) #NEWLINE# if ( last_plus_elapsed < 255 ) : #NEWLINE# #INDENT# self . _last_part_moves [ elapsed_hours ] = last_plus_elapsed #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _last_part_moves [ part ] = 255 #NEWLINE# #UNINDENT# #UNINDENT# self . _last_part_moves_epoch = int ( time ( ) )