Revision 4123e0f7 sssim.c

View differences:

sssim.c
43 43
static int buf_size;
44 44
static int ts = 2;
45 45
static int event_driven = 0;
46
int per_link_events = 0;
46 47
static int display_neighbourhood;
47 48

  
48 49
static void show_usage(char *argv[])
......
65 66
  printf("\t-T <Server Period>:\t\tSet the deadline postponing amount\n");
66 67
  printf("\t-g <Graph file name>:\t\tSave the overlay as a DOT file\n");
67 68
  printf("\t-e:\t\t\t\tSwitch to event-driven mode\n");
69
  printf("\t-E:\t\t\t\tSwitch to event-driven mode and generate per-link events\n");
68 70
  printf("\t-G <Edge Graph file name>:\tImport the overlay from an '.edges' file. Options: [,optimize][,random_source]\n");
69 71
  printf("\t-a <precision>:\t\t\tStops if convergence is reached.\n");
70 72
  printf("\t-w <analysis window size>:\tDefine the analysis chunk window.\n");
......
75 77
{
76 78
  int o;
77 79
  
78
  while ((o = getopt(argc, argv, "w:a:d:c:eo:n:t:r:s:p:S:b:T:g:G:l:hP")) != -1) {
80
  while ((o = getopt(argc, argv, "w:a:d:c:eEo:n:t:r:s:p:S:b:T:g:G:l:hP")) != -1) {
79 81
    switch(o) {
80 82
      case 'a':
81 83
        convergence_precision = atof(optarg);
......
83 85
      case 'w':
84 86
        analysis_window = atoi(optarg);
85 87
        break;
88
      case 'E':
89
	per_link_events = 1;
86 90
      case 'e':
87 91
        event_driven = 1;
88 92
        break;

Also available in: Unified diff