qubes-restore: properly format time
2 microseconds are not 2 deciseconds
This commit is contained in:
		
							parent
							
								
									bf6486e973
								
							
						
					
					
						commit
						95c76e071e
					
				| @ -89,7 +89,7 @@ char *gettime() | |||||||
| 	static char retbuf[60]; | 	static char retbuf[60]; | ||||||
| 	struct timeval tv; | 	struct timeval tv; | ||||||
| 	gettimeofday(&tv, NULL); | 	gettimeofday(&tv, NULL); | ||||||
| 	snprintf(retbuf, sizeof(retbuf), "%lld.%lld", | 	snprintf(retbuf, sizeof(retbuf), "%lld.%06lld", | ||||||
| 		 (long long) tv.tv_sec, (long long) tv.tv_usec); | 		 (long long) tv.tv_sec, (long long) tv.tv_usec); | ||||||
| 	return retbuf; | 	return retbuf; | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Vincent Penquerc'h
						Vincent Penquerc'h