mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-02-02 15:07:36 -05:00
don't overwrite info in one yp with info from another :)
svn path=/trunk/icecast/; revision=5103
This commit is contained in:
parent
c6caf7f19c
commit
d5b71bce49
14
src/yp.c
14
src/yp.c
@ -239,10 +239,7 @@ int yp_touch()
|
||||
strftime(tyme, 128, "%Y-%m-%d %H:%M:%S",
|
||||
localtime(¤t_time));
|
||||
stats_event(source->mount, "yp_last_touch", tyme);
|
||||
add_yp_info(source, "last_touch",
|
||||
(void *)current_time,
|
||||
YP_LAST_TOUCH);
|
||||
|
||||
source->ypdata[i]->yp_last_touch = current_time;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -561,15 +558,6 @@ void add_yp_info(source_t *source, char *stat_name,
|
||||
free(escaped);
|
||||
}
|
||||
break;
|
||||
case YP_URL_TIMEOUT:
|
||||
source->ypdata[i]->yp_url_timeout = (int)info;
|
||||
break;
|
||||
case YP_LAST_TOUCH:
|
||||
source->ypdata[i]->yp_last_touch = (int)info;
|
||||
break;
|
||||
case YP_TOUCH_INTERVAL:
|
||||
source->ypdata[i]->yp_touch_interval = (int)info;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user