change display id '1' -> '001'
This commit is contained in:
		
							
								
								
									
										2
									
								
								print.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								print.c
									
									
									
									
									
								
							| @ -19,7 +19,7 @@ static void	print(t_data *data, size_t id, char *str) | |||||||
| 	pthread_mutex_unlock(&data->stop_mutex); | 	pthread_mutex_unlock(&data->stop_mutex); | ||||||
| 	time = get_time(); | 	time = get_time(); | ||||||
| 	pthread_mutex_lock(&print_mutex); | 	pthread_mutex_lock(&print_mutex); | ||||||
| 	printf("%07zu %3zu %s\n", time, id + 1, str); | 	printf("%07zu %03zu %s\n", time, id + 1, str); | ||||||
| 	pthread_mutex_unlock(&print_mutex); | 	pthread_mutex_unlock(&print_mutex); | ||||||
| } | } | ||||||
|  |  | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user