Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
Icecast-Server
Commits
d5b71bce
Commit
d5b71bce
authored
Jul 08, 2003
by
Ed "oddsock" Zaleski
Browse files
don't overwrite info in one yp with info from another :)
svn path=/trunk/icecast/; revision=5103
parent
c6caf7f1
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/yp.c
View file @
d5b71bce
...
...
@@ -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
;
}
}
}
src/yp.h
View file @
d5b71bce
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment