[prev in list] [next in list] [prev in thread] [next in thread]
List: proftpd-committers
Subject: [ProFTPD-committers] CVS: proftpd/utils ftptop.c,1.16,1.17
From: TJ Saunders <castaglia () users ! sourceforge ! net>
Date: 2002-12-31 22:35:23
[Download RAW message or body]
Update of /cvsroot/proftp/proftpd/utils
In directory sc8-pr-cvs1:/tmp/cvs-serv8203/utils
Modified Files:
ftptop.c
Log Message:
Actually calculate and display the TIME value (duration of session, in seconds).
Index: ftptop.c
===================================================================
RCS file: /cvsroot/proftp/proftpd/utils/ftptop.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- ftptop.c 31 Dec 2002 20:00:11 -0000 1.16
+++ ftptop.c 31 Dec 2002 22:35:20 -0000 1.17
@@ -63,7 +63,7 @@
/* Display options */
#define FTPTOP_HEADER_FORMAT "%-5s %s %-8s %-20s %-15s %-4s %-20s\n"
-#define FTPTOP_DISPLAY_FORMAT "%-5d %s %-8.8s %-20.20s %-15s 0 %-20.20s\n"
+#define FTPTOP_DISPLAY_FORMAT "%-5d %s %-8.8s %-20.20s %-15s %lu %-20.20s\n"
#define FTPTOP_SHOW_DOWNLOAD 0x0001
#define FTPTOP_SHOW_UPLOAD 0x0002
@@ -317,7 +317,8 @@
snprintf(buf, sizeof(buf), FTPTOP_DISPLAY_FORMAT,
(int)score->sce_pid, status, score->sce_user, score->sce_client_name,
- score->sce_server_addr, score->sce_cmd);
+ score->sce_server_addr, time(NULL) - score->sce_begin_session,
+ score->sce_cmd);
buf[sizeof(buf)-1] = '\0';
/* Make sure there is enough memory allocated in the session list.
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
ProFTPD Committers Mailing List
proftpd-committers@proftpd.org
https://lists.sourceforge.net/lists/listinfo/proftp-committers
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic