Changeset 6643 for pymolproxy/branches/1.0/pymolproxy.c
- Timestamp:
- Nov 15, 2016, 3:05:24 PM (8 years ago)
- Location:
- pymolproxy/branches/1.0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pymolproxy/branches/1.0
- Property svn:mergeinfo changed
/pymolproxy/trunk merged: 6642
- Property svn:mergeinfo changed
-
pymolproxy/branches/1.0/pymolproxy.c
r6635 r6643 87 87 #include <md5.h> 88 88 89 #define PYMOLPROXY_VERSION "1.0. 2"89 #define PYMOLPROXY_VERSION "1.0.3" 90 90 91 91 #undef INLINE … … 137 137 typedef struct { 138 138 pid_t pid; /* Child process. */ 139 size_t numDataSets; /* # of pdb data sets received */ 140 size_t numDataBytes; /* # of bytes received as pdb */ 139 141 size_t numFrames; /* # of frames sent to client. */ 140 142 size_t numBytes; /* # of bytes for all frames. */ … … 643 645 * - Stop date of session 644 646 * - Stop date of session in seconds 647 * - Number of data sets loaded from client 648 * - Number of data bytes total loaded from client 645 649 * - Number of frames returned 646 650 * - Number of bytes total returned (in frames) … … 678 682 Tcl_DStringAppendElement(&ds, "date_secs"); 679 683 sprintf(buf, "%ld", now.tv_sec); 684 Tcl_DStringAppendElement(&ds, buf); 685 /* num_data_sets */ 686 Tcl_DStringAppendElement(&ds, "num_data_sets"); 687 sprintf(buf, "%lu", (unsigned long)stats.numDataSets); 688 Tcl_DStringAppendElement(&ds, buf); 689 /* data_set_bytes */ 690 Tcl_DStringAppendElement(&ds, "data_set_bytes"); 691 sprintf(buf, "%lu", (unsigned long)stats.numDataBytes); 680 692 Tcl_DStringAppendElement(&ds, buf); 681 693 /* num_frames */ … … 1159 1171 p->status = TCL_OK; 1160 1172 } 1173 stats.numDataSets++; 1174 stats.numDataBytes += numBytes; 1161 1175 error: 1162 1176 if (allocated != NULL) { … … 2499 2513 DEBUG("Idle timeout: %ld", idleTimeout); 2500 2514 2515 memset(&stats, 0, sizeof(stats)); 2501 2516 InitProxy(&proxy, argv + optind); 2502 2517 if (pthread_create(&thread1, NULL, &ClientToServer, &proxy) < 0) {
Note: See TracChangeset
for help on using the changeset viewer.