Commit d5b71bce authored by Ed "oddsock" Zaleski's avatar Ed "oddsock" Zaleski

don't overwrite info in one yp with info from another :)

svn path=/trunk/icecast/; revision=5103
parent c6caf7f1
......@@ -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;
}
}
}
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment