Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Icecast-Server
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
94
Issues
94
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
External Wiki
External Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiph.Org
Icecast-Server
Commits
eebb33b8
Commit
eebb33b8
authored
Aug 16, 2007
by
Karl Heyes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add general information to stats
svn path=/icecast/trunk/icecast/; revision=13553
parent
be75324e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
8 deletions
+19
-8
src/event.c
src/event.c
+6
-4
src/slave.c
src/slave.c
+3
-0
src/stats.c
src/stats.c
+8
-0
src/stats.h
src/stats.h
+2
-4
No files found.
src/event.c
View file @
eebb33b8
...
...
@@ -24,6 +24,7 @@
#include "logging.h"
#include "slave.h"
#include "fserve.h"
#include "stats.h"
#define CATMODULE "event"
...
...
@@ -60,10 +61,11 @@ void event_config_read(void *arg)
else
{
config_clear
(
config
);
config_set_config
(
&
new_config
);
restart_logging
(
config_get_config_unlocked
());
yp_recheck_config
(
config_get_config_unlocked
());
fserve_recheck_mime_types
(
config_get_config_unlocked
());
config
=
config_get_config_unlocked
();
restart_logging
(
config
);
yp_recheck_config
(
config
);
fserve_recheck_mime_types
(
config
);
stats_global
(
config
);
config_release_config
();
slave_recheck_all
();
}
...
...
src/slave.c
View file @
eebb33b8
...
...
@@ -679,6 +679,9 @@ static void *_slave_thread(void *arg)
update_settings
=
0
;
update_streams
=
0
;
config
=
config_get_config
();
stats_global
(
config
);
config_release_config
();
source_recheck_mounts
(
1
);
while
(
1
)
...
...
src/stats.c
View file @
eebb33b8
...
...
@@ -543,6 +543,14 @@ void stats_event_time (const char *mount, const char *name)
}
void
stats_global
(
ice_config_t
*
config
)
{
stats_event
(
NULL
,
"host"
,
config
->
hostname
);
stats_event
(
NULL
,
"location"
,
config
->
location
);
stats_event
(
NULL
,
"admin"
,
config
->
admin
);
}
static
void
*
_stats_thread
(
void
*
arg
)
{
stats_event_t
*
event
;
...
...
src/stats.h
View file @
eebb33b8
...
...
@@ -13,6 +13,7 @@
#ifndef __STATS_H__
#define __STATS_H__
#include "cfgfile.h"
#include "connection.h"
#include "httpp/httpp.h"
#include "client.h"
...
...
@@ -73,6 +74,7 @@ typedef struct _stats_tag
void
stats_initialize
(
void
);
void
stats_shutdown
(
void
);
void
stats_global
(
ice_config_t
*
config
);
stats_t
*
stats_get_stats
(
void
);
void
stats_get_streamlist
(
char
*
buffer
,
size_t
remaining
);
void
stats_clear_virtual_mounts
(
void
);
...
...
@@ -95,7 +97,3 @@ char *stats_get_value(char *source, char *name);
#endif
/* __STATS_H__ */
Write
Preview
Markdown
is supported
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