Merge branch 'master' of github.com:Namonay/ft_ping
This commit is contained in:
6
.gitignore
vendored
6
.gitignore
vendored
@@ -1,5 +1,11 @@
|
||||
<<<<<<< HEAD
|
||||
.vscode
|
||||
.cache
|
||||
generate_json.py
|
||||
ft_ping
|
||||
|
||||
=======
|
||||
*.o
|
||||
a.out
|
||||
.vscode
|
||||
>>>>>>> 00fcdacf31561477259f851446360c0b7fc79eb6
|
||||
|
||||
@@ -72,6 +72,8 @@ double get_avg(double *timestamp_array)
|
||||
double avg = 0;
|
||||
int i = 0;
|
||||
|
||||
if (timestamp_array[0] == 0)
|
||||
return (0);
|
||||
while (timestamp_array[i])
|
||||
{
|
||||
avg += timestamp_array[i];
|
||||
|
||||
Reference in New Issue
Block a user