Skip to content
Navigation Menu
Toggle navigation
Sign in
In this repository
All GitHub Enterprise
↵
Jump to
↵
No suggested jump to results
In this repository
All GitHub Enterprise
↵
Jump to
↵
In this organization
All GitHub Enterprise
↵
Jump to
↵
In this repository
All GitHub Enterprise
↵
Jump to
↵
Sign in
Reseting focus
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
mariux64
/
mxq
Public
Notifications
You must be signed in to change notification settings
Fork
3
Star
3
Code
Issues
20
Pull requests
3
Actions
Projects
0
Wiki
Security
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security
Insights
Files
b636630
helper
manpages
mysql
web
.gitignore
.vimrc
Doxyfile
LICENSE
Makefile
README.md
keywordset.c
keywordset.h
mx_flock.c
mx_flock.h
mx_getopt.c
mx_getopt.h
mx_log.c
mx_log.h
mx_mysql.c
mx_mysql.h
mx_proc.c
mx_proc.h
mx_util.c
mx_util.h
mxq.h
mxq_daemon.c
mxq_daemon.h
mxq_group.c
mxq_group.h
mxq_job.c
mxq_job.h
mxq_log.c
mxq_reaper.c
mxqadmin.c
mxqd.c
mxqd.h
mxqd_control.c
mxqd_control.h
mxqdctl-hostconfig.sh
mxqdump.c
mxqkill.c
mxqps.c
mxqset.c
mxqsub.c
os-release
parser.y
ppidcache.c
ppidcache.h
test_keywordset.c
test_mx_log.c
test_mx_mysql.c
test_mx_util.c
test_mxqd_control.c
test_parser.c
xmalloc.h
Breadcrumbs
mxq
/
test_mxqd_control.c
Blame
Blame
Latest commit
History
History
36 lines (26 loc) · 631 Bytes
Breadcrumbs
mxq
/
test_mxqd_control.c
Top
File metadata and controls
Code
Blame
36 lines (26 loc) · 631 Bytes
Raw
#define _GNU_SOURCE #include <assert.h> #include "mxqd.h" #define MEMORY_TOTAL 20480 #define MEMORY_MAX_PER_SLOT 2048 #define SLOTS 10 void __init_server(struct mxq_server *server) { server->memory_total = MEMORY_TOTAL; server->memory_limit_slot_soft = MEMORY_MAX_PER_SLOT; server->slots = SLOTS; server->memory_avg_per_slot = MEMORY_TOTAL / SLOTS; } static void test_mxqd_control(void) { struct mxq_server _server = { 0 }; struct mxq_server *server; server = &_server; __init_server(server); assert(1); } int main(void) { test_mxqd_control(); return 0; }
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
You can’t perform that action at this time.