Navigation


Changes in / [1113:eb4ce68b6e5c:1116:5da2ea1585a1] in freeDiameter


Ignore:
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • contrib/tools/org_to_fd.pl

    r960 r1114  
    5353
    5454sub usage($) {
    55     die("usage: org_to_fd.pl [-V vendor_name -v vendor] [file ...]\n");
     55    die("usage: org_to_fd.pl [-V vendor_name -v vendor_code] [file ...]\n");
    5656    exit(@_);
    5757}
  • extensions/rt_busypeers/rtbusy.c

    r1109 r1115  
    107107                /* Send the query again. We  need to re-associate the expirecb which was cleaned, if it is used */
    108108                if (rtbusy_conf.RelayTimeout) {
    109                         struct timespec tm = { .tv_sec = rtbusy_conf.RelayTimeout/1000, .tv_nsec=1000000LL * (rtbusy_conf.RelayTimeout % 1000) };
    110                         CHECK_FCT( fd_msg_send_timeout( pmsg, NULL, NULL, rtbusy_expirecb, &tm ) );
     109                        struct timespec expire;
     110                        CHECK_SYS(  clock_gettime(CLOCK_REALTIME, &expire)  );
     111                        expire.tv_sec += rtbusy_conf.RelayTimeout/1000 + ((expire.tv_nsec + (1000000LL * (rtbusy_conf.RelayTimeout % 1000))) / 1000000000LL);
     112                        expire.tv_nsec = (expire.tv_nsec + (1000000LL * (rtbusy_conf.RelayTimeout % 1000))) % 1000000000LL;
     113                        CHECK_FCT( fd_msg_send_timeout( pmsg, NULL, NULL, rtbusy_expirecb, &expire ) );
    111114                } else {
    112115                        CHECK_FCT( fd_msg_send(pmsg, NULL, NULL) );
Note: See TracChangeset for help on using the changeset viewer.