1
0
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:
oddsock 2003-07-08 14:11:01 +00:00
parent c6caf7f19c
commit d5b71bce49
2 changed files with 1 additions and 16 deletions

View File

@ -239,10 +239,7 @@ int yp_touch()
strftime(tyme, 128, "%Y-%m-%d %H:%M:%S",
localtime(&current_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;
}
}
}

View File

@ -12,9 +12,6 @@
#define YP_AUDIO_INFO 6
#define YP_SERVER_TYPE 7
#define YP_CURRENT_SONG 8
#define YP_URL_TIMEOUT 9
#define YP_TOUCH_INTERVAL 10
#define YP_LAST_TOUCH 11
struct source_tag;