projects
/
remotetop.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0440f7f
)
Add comments, fix binding of topd
author
teodor
<teodor>
Thu, 29 Nov 2007 18:54:33 +0000
(18:54 +0000)
committer
teodor
<teodor>
Thu, 29 Nov 2007 18:54:33 +0000
(18:54 +0000)
sendtop.c
patch
|
blob
|
history
topd.c
patch
|
blob
|
history
diff --git
a/sendtop.c
b/sendtop.c
index
4a48662
..
ce24d62
100644
(file)
--- a/
sendtop.c
+++ b/
sendtop.c
@@
-90,6
+90,10
@@
getmeminfo(TCMsgTop *m) {
#define MEMBUFSIZE 256
#define MEMBUFSIZE 256
+/*
+ * if str mathes by pattern returns poineter to begin of value
+ * and NULL in opposite case
+ */
static char*
cmpPattern( char *str, char *pattern ) {
while( *str != '\0' && *str == *pattern ) {
static char*
cmpPattern( char *str, char *pattern ) {
while( *str != '\0' && *str == *pattern ) {
diff --git
a/topd.c
b/topd.c
index
f532a7d
..
5dedced
100644
(file)
--- a/
topd.c
+++ b/
topd.c
@@
-120,7
+120,7
@@
main( int argc, char *argv[] ) {
cfg.mu = allocUnits(n);
TC_addConnection( &cfg.pool, TC_fillConnection(NULL, NULL, listenport) );
cfg.mu = allocUnits(n);
TC_addConnection( &cfg.pool, TC_fillConnection(NULL, NULL, listenport) );
- TC_ClientInitConnection( cfg.pool.conn[0],
NULL
, listenport);
+ TC_ClientInitConnection( cfg.pool.conn[0],
host
, listenport);
cfg.pool.conn[0]->state = CS_READ;
TC_addConnection( &cfg.pool, TC_fillConnection(NULL, NULL, listenport) );
cfg.pool.conn[0]->state = CS_READ;
TC_addConnection( &cfg.pool, TC_fillConnection(NULL, NULL, listenport) );