Willy Tarreau | baaee00 | 2006-06-26 02:48:02 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Time calculation functions. |
| 3 | * |
Willy Tarreau | 45a1251 | 2011-09-10 16:56:42 +0200 | [diff] [blame] | 4 | * Copyright 2000-2011 Willy Tarreau <w@1wt.eu> |
Willy Tarreau | baaee00 | 2006-06-26 02:48:02 +0200 | [diff] [blame] | 5 | * |
| 6 | * This program is free software; you can redistribute it and/or |
| 7 | * modify it under the terms of the GNU General Public License |
| 8 | * as published by the Free Software Foundation; either version |
| 9 | * 2 of the License, or (at your option) any later version. |
| 10 | * |
| 11 | */ |
| 12 | |
| 13 | #include <sys/time.h> |
Willy Tarreau | e3ba5f0 | 2006-06-29 18:54:54 +0200 | [diff] [blame] | 14 | |
| 15 | #include <common/config.h> |
Willy Tarreau | 5e8f066 | 2007-02-12 00:59:08 +0100 | [diff] [blame] | 16 | #include <common/standard.h> |
Willy Tarreau | 2dd0d47 | 2006-06-29 17:53:05 +0200 | [diff] [blame] | 17 | #include <common/time.h> |
Christopher Faulet | 99aad92 | 2017-10-31 09:03:51 +0100 | [diff] [blame] | 18 | #include <common/hathreads.h> |
Willy Tarreau | baaee00 | 2006-06-26 02:48:02 +0200 | [diff] [blame] | 19 | |
Christopher Faulet | 9a65571 | 2017-05-11 11:00:15 +0200 | [diff] [blame] | 20 | THREAD_LOCAL unsigned int ms_left_scaled; /* milliseconds left for current second (0..2^32-1) */ |
| 21 | THREAD_LOCAL unsigned int now_ms; /* internal date in milliseconds (may wrap) */ |
| 22 | THREAD_LOCAL unsigned int samp_time; /* total elapsed time over current sample */ |
| 23 | THREAD_LOCAL unsigned int idle_time; /* total idle time over current sample */ |
| 24 | THREAD_LOCAL unsigned int idle_pct; /* idle to total ratio over last sample (percent) */ |
| 25 | THREAD_LOCAL struct timeval now; /* internal date is a monotonic function of real clock */ |
| 26 | THREAD_LOCAL struct timeval date; /* the real current date */ |
Willy Tarreau | baaee00 | 2006-06-26 02:48:02 +0200 | [diff] [blame] | 27 | struct timeval start_date; /* the process's start date */ |
Christopher Faulet | 9a65571 | 2017-05-11 11:00:15 +0200 | [diff] [blame] | 28 | THREAD_LOCAL struct timeval before_poll; /* system date before calling poll() */ |
| 29 | THREAD_LOCAL struct timeval after_poll; /* system date after leaving poll() */ |
Willy Tarreau | baaee00 | 2006-06-26 02:48:02 +0200 | [diff] [blame] | 30 | |
Willy Tarreau | 9fefc51 | 2017-11-23 14:52:28 +0100 | [diff] [blame] | 31 | static THREAD_LOCAL struct timeval tv_offset; /* per-thread time ofsset relative to global time */ |
| 32 | volatile unsigned long long global_now; /* common date between all threads (32:32) */ |
| 33 | |
Willy Tarreau | baaee00 | 2006-06-26 02:48:02 +0200 | [diff] [blame] | 34 | /* |
| 35 | * adds <ms> ms to <from>, set the result to <tv> and returns a pointer <tv> |
| 36 | */ |
Willy Tarreau | 42aae5c | 2007-04-29 17:43:56 +0200 | [diff] [blame] | 37 | REGPRM3 struct timeval *_tv_ms_add(struct timeval *tv, const struct timeval *from, int ms) |
Willy Tarreau | baaee00 | 2006-06-26 02:48:02 +0200 | [diff] [blame] | 38 | { |
Willy Tarreau | 42aae5c | 2007-04-29 17:43:56 +0200 | [diff] [blame] | 39 | tv->tv_usec = from->tv_usec + (ms % 1000) * 1000; |
| 40 | tv->tv_sec = from->tv_sec + (ms / 1000); |
Willy Tarreau | baaee00 | 2006-06-26 02:48:02 +0200 | [diff] [blame] | 41 | while (tv->tv_usec >= 1000000) { |
| 42 | tv->tv_usec -= 1000000; |
| 43 | tv->tv_sec++; |
| 44 | } |
| 45 | return tv; |
| 46 | } |
| 47 | |
| 48 | /* |
| 49 | * compares <tv1> and <tv2> modulo 1ms: returns 0 if equal, -1 if tv1 < tv2, 1 if tv1 > tv2 |
Willy Tarreau | 42aae5c | 2007-04-29 17:43:56 +0200 | [diff] [blame] | 50 | * Must not be used when either argument is eternity. Use tv_ms_cmp2() for that. |
Willy Tarreau | baaee00 | 2006-06-26 02:48:02 +0200 | [diff] [blame] | 51 | */ |
Willy Tarreau | 42aae5c | 2007-04-29 17:43:56 +0200 | [diff] [blame] | 52 | REGPRM2 int _tv_ms_cmp(const struct timeval *tv1, const struct timeval *tv2) |
Willy Tarreau | baaee00 | 2006-06-26 02:48:02 +0200 | [diff] [blame] | 53 | { |
Willy Tarreau | 42aae5c | 2007-04-29 17:43:56 +0200 | [diff] [blame] | 54 | return __tv_ms_cmp(tv1, tv2); |
Willy Tarreau | baaee00 | 2006-06-26 02:48:02 +0200 | [diff] [blame] | 55 | } |
| 56 | |
| 57 | /* |
Willy Tarreau | baaee00 | 2006-06-26 02:48:02 +0200 | [diff] [blame] | 58 | * compares <tv1> and <tv2> modulo 1 ms: returns 0 if equal, -1 if tv1 < tv2, 1 if tv1 > tv2, |
Willy Tarreau | a6a6a93 | 2007-04-28 22:40:08 +0200 | [diff] [blame] | 59 | * assuming that TV_ETERNITY is greater than everything. |
Willy Tarreau | baaee00 | 2006-06-26 02:48:02 +0200 | [diff] [blame] | 60 | */ |
Willy Tarreau | 42aae5c | 2007-04-29 17:43:56 +0200 | [diff] [blame] | 61 | REGPRM2 int _tv_ms_cmp2(const struct timeval *tv1, const struct timeval *tv2) |
Willy Tarreau | baaee00 | 2006-06-26 02:48:02 +0200 | [diff] [blame] | 62 | { |
Willy Tarreau | 42aae5c | 2007-04-29 17:43:56 +0200 | [diff] [blame] | 63 | return __tv_ms_cmp2(tv1, tv2); |
Willy Tarreau | 8d7d149 | 2007-04-29 10:50:43 +0200 | [diff] [blame] | 64 | } |
| 65 | |
| 66 | /* |
| 67 | * compares <tv1> and <tv2> modulo 1 ms: returns 1 if tv1 <= tv2, 0 if tv1 > tv2, |
| 68 | * assuming that TV_ETERNITY is greater than everything. Returns 0 if tv1 is |
| 69 | * TV_ETERNITY, and always assumes that tv2 != TV_ETERNITY. Designed to replace |
Willy Tarreau | 42aae5c | 2007-04-29 17:43:56 +0200 | [diff] [blame] | 70 | * occurrences of (tv_ms_cmp2(tv,now) <= 0). |
Willy Tarreau | 8d7d149 | 2007-04-29 10:50:43 +0200 | [diff] [blame] | 71 | */ |
Willy Tarreau | 42aae5c | 2007-04-29 17:43:56 +0200 | [diff] [blame] | 72 | REGPRM2 int _tv_ms_le2(const struct timeval *tv1, const struct timeval *tv2) |
Willy Tarreau | 8d7d149 | 2007-04-29 10:50:43 +0200 | [diff] [blame] | 73 | { |
Willy Tarreau | 42aae5c | 2007-04-29 17:43:56 +0200 | [diff] [blame] | 74 | return __tv_ms_le2(tv1, tv2); |
| 75 | } |
Willy Tarreau | 8d7d149 | 2007-04-29 10:50:43 +0200 | [diff] [blame] | 76 | |
Willy Tarreau | 42aae5c | 2007-04-29 17:43:56 +0200 | [diff] [blame] | 77 | /* |
| 78 | * returns the remaining time between tv1=now and event=tv2 |
| 79 | * if tv2 is passed, 0 is returned. |
| 80 | * Must not be used when either argument is eternity. |
| 81 | */ |
| 82 | REGPRM2 unsigned long _tv_ms_remain(const struct timeval *tv1, const struct timeval *tv2) |
| 83 | { |
| 84 | return __tv_ms_remain(tv1, tv2); |
Willy Tarreau | baaee00 | 2006-06-26 02:48:02 +0200 | [diff] [blame] | 85 | } |
| 86 | |
| 87 | /* |
| 88 | * returns the remaining time between tv1=now and event=tv2 |
| 89 | * if tv2 is passed, 0 is returned. |
| 90 | * Returns TIME_ETERNITY if tv2 is eternity. |
| 91 | */ |
Willy Tarreau | 42aae5c | 2007-04-29 17:43:56 +0200 | [diff] [blame] | 92 | REGPRM2 unsigned long _tv_ms_remain2(const struct timeval *tv1, const struct timeval *tv2) |
Willy Tarreau | baaee00 | 2006-06-26 02:48:02 +0200 | [diff] [blame] | 93 | { |
Willy Tarreau | baaee00 | 2006-06-26 02:48:02 +0200 | [diff] [blame] | 94 | if (tv_iseternity(tv2)) |
| 95 | return TIME_ETERNITY; |
| 96 | |
Willy Tarreau | 42aae5c | 2007-04-29 17:43:56 +0200 | [diff] [blame] | 97 | return __tv_ms_remain(tv1, tv2); |
Willy Tarreau | baaee00 | 2006-06-26 02:48:02 +0200 | [diff] [blame] | 98 | } |
| 99 | |
Willy Tarreau | baaee00 | 2006-06-26 02:48:02 +0200 | [diff] [blame] | 100 | /* |
Willy Tarreau | 42aae5c | 2007-04-29 17:43:56 +0200 | [diff] [blame] | 101 | * Returns the time in ms elapsed between tv1 and tv2, assuming that tv1<=tv2. |
Willy Tarreau | baaee00 | 2006-06-26 02:48:02 +0200 | [diff] [blame] | 102 | * Must not be used when either argument is eternity. |
| 103 | */ |
Willy Tarreau | 42aae5c | 2007-04-29 17:43:56 +0200 | [diff] [blame] | 104 | REGPRM2 unsigned long _tv_ms_elapsed(const struct timeval *tv1, const struct timeval *tv2) |
Willy Tarreau | baaee00 | 2006-06-26 02:48:02 +0200 | [diff] [blame] | 105 | { |
Willy Tarreau | 42aae5c | 2007-04-29 17:43:56 +0200 | [diff] [blame] | 106 | return __tv_ms_elapsed(tv1, tv2); |
Willy Tarreau | baaee00 | 2006-06-26 02:48:02 +0200 | [diff] [blame] | 107 | } |
| 108 | |
| 109 | /* |
Willy Tarreau | d825eef | 2007-05-12 22:35:00 +0200 | [diff] [blame] | 110 | * adds <inc> to <from>, set the result to <tv> and returns a pointer <tv> |
| 111 | */ |
| 112 | REGPRM3 struct timeval *_tv_add(struct timeval *tv, const struct timeval *from, const struct timeval *inc) |
| 113 | { |
| 114 | return __tv_add(tv, from, inc); |
| 115 | } |
| 116 | |
| 117 | /* |
Willy Tarreau | 0481c20 | 2007-05-13 16:03:27 +0200 | [diff] [blame] | 118 | * If <inc> is set, then add it to <from> and set the result to <tv>, then |
| 119 | * return 1, otherwise return 0. It is meant to be used in if conditions. |
| 120 | */ |
| 121 | REGPRM3 int _tv_add_ifset(struct timeval *tv, const struct timeval *from, const struct timeval *inc) |
| 122 | { |
| 123 | return __tv_add_ifset(tv, from, inc); |
| 124 | } |
| 125 | |
| 126 | /* |
Willy Tarreau | d825eef | 2007-05-12 22:35:00 +0200 | [diff] [blame] | 127 | * Computes the remaining time between tv1=now and event=tv2. if tv2 is passed, |
| 128 | * 0 is returned. The result is stored into tv. |
| 129 | */ |
| 130 | REGPRM3 struct timeval *_tv_remain(const struct timeval *tv1, const struct timeval *tv2, struct timeval *tv) |
| 131 | { |
| 132 | return __tv_remain(tv1, tv2, tv); |
| 133 | } |
| 134 | |
| 135 | /* |
| 136 | * Computes the remaining time between tv1=now and event=tv2. if tv2 is passed, |
| 137 | * 0 is returned. The result is stored into tv. Returns ETERNITY if tv2 is |
| 138 | * eternity. |
| 139 | */ |
| 140 | REGPRM3 struct timeval *_tv_remain2(const struct timeval *tv1, const struct timeval *tv2, struct timeval *tv) |
| 141 | { |
| 142 | return __tv_remain2(tv1, tv2, tv); |
| 143 | } |
| 144 | |
Willy Tarreau | 0481c20 | 2007-05-13 16:03:27 +0200 | [diff] [blame] | 145 | /* tv_isle: compares <tv1> and <tv2> : returns 1 if tv1 <= tv2, otherwise 0 */ |
| 146 | REGPRM2 int _tv_isle(const struct timeval *tv1, const struct timeval *tv2) |
| 147 | { |
| 148 | return __tv_isle(tv1, tv2); |
| 149 | } |
| 150 | |
| 151 | /* tv_isgt: compares <tv1> and <tv2> : returns 1 if tv1 > tv2, otherwise 0 */ |
| 152 | REGPRM2 int _tv_isgt(const struct timeval *tv1, const struct timeval *tv2) |
| 153 | { |
| 154 | return __tv_isgt(tv1, tv2); |
| 155 | } |
| 156 | |
Willy Tarreau | 7649aac | 2017-11-23 11:52:55 +0100 | [diff] [blame] | 157 | /* tv_update_date: sets <date> to system time, and sets <now> to something as |
Willy Tarreau | b0b37bc | 2008-06-23 14:00:57 +0200 | [diff] [blame] | 158 | * close as possible to real time, following a monotonic function. The main |
| 159 | * principle consists in detecting backwards and forwards time jumps and adjust |
| 160 | * an offset to correct them. This function should be called once after each |
| 161 | * poll, and never farther apart than MAX_DELAY_MS*2. The poll's timeout should |
| 162 | * be passed in <max_wait>, and the return value in <interrupted> (a non-zero |
| 163 | * value means that we have not expired the timeout). Calling it with (-1,*) |
| 164 | * sets both <date> and <now> to current date, and calling it with (0,1) simply |
| 165 | * updates the values. |
Christopher Faulet | 99aad92 | 2017-10-31 09:03:51 +0100 | [diff] [blame] | 166 | * |
Willy Tarreau | 7649aac | 2017-11-23 11:52:55 +0100 | [diff] [blame] | 167 | * An offset is used to adjust the current time (date), to have a monotonic time |
Christopher Faulet | 99aad92 | 2017-10-31 09:03:51 +0100 | [diff] [blame] | 168 | * (now). It must be global and thread-safe. But a timeval cannot be atomically |
Willy Tarreau | 7649aac | 2017-11-23 11:52:55 +0100 | [diff] [blame] | 169 | * updated. So instead, we store it in a 64-bits integer (offset) whose 32 MSB |
| 170 | * contain the signed seconds adjustment andthe 32 LSB contain the unsigned |
| 171 | * microsecond adjustment. We cannot use a timeval for this since it's never |
| 172 | * clearly specified whether a timeval may hold negative values or not. |
Willy Tarreau | b7f694f | 2008-06-22 17:18:02 +0200 | [diff] [blame] | 173 | */ |
Willy Tarreau | b0b37bc | 2008-06-23 14:00:57 +0200 | [diff] [blame] | 174 | REGPRM2 void tv_update_date(int max_wait, int interrupted) |
Willy Tarreau | b7f694f | 2008-06-22 17:18:02 +0200 | [diff] [blame] | 175 | { |
Willy Tarreau | a331544 | 2018-02-05 20:11:38 +0100 | [diff] [blame] | 176 | struct timeval adjusted, deadline, tmp_now, tmp_adj; |
Willy Tarreau | 351b3a1 | 2017-03-29 15:24:33 +0200 | [diff] [blame] | 177 | unsigned int curr_sec_ms; /* millisecond of current second (0..999) */ |
Willy Tarreau | 9fefc51 | 2017-11-23 14:52:28 +0100 | [diff] [blame] | 178 | unsigned long long old_now; |
| 179 | unsigned long long new_now; |
Willy Tarreau | b7f694f | 2008-06-22 17:18:02 +0200 | [diff] [blame] | 180 | |
Willy Tarreau | b0b37bc | 2008-06-23 14:00:57 +0200 | [diff] [blame] | 181 | gettimeofday(&date, NULL); |
| 182 | if (unlikely(max_wait < 0)) { |
Willy Tarreau | 9fefc51 | 2017-11-23 14:52:28 +0100 | [diff] [blame] | 183 | tv_zero(&tv_offset); |
Willy Tarreau | 7559058 | 2009-03-05 14:54:50 +0100 | [diff] [blame] | 184 | adjusted = date; |
Willy Tarreau | 45a1251 | 2011-09-10 16:56:42 +0200 | [diff] [blame] | 185 | after_poll = date; |
| 186 | samp_time = idle_time = 0; |
| 187 | idle_pct = 100; |
Willy Tarreau | 9fefc51 | 2017-11-23 14:52:28 +0100 | [diff] [blame] | 188 | global_now = (((unsigned long long)adjusted.tv_sec) << 32) + |
| 189 | (unsigned int)adjusted.tv_usec; |
Willy Tarreau | e6313a3 | 2008-06-29 13:47:25 +0200 | [diff] [blame] | 190 | goto to_ms; |
Willy Tarreau | b0b37bc | 2008-06-23 14:00:57 +0200 | [diff] [blame] | 191 | } |
Willy Tarreau | 7649aac | 2017-11-23 11:52:55 +0100 | [diff] [blame] | 192 | |
Willy Tarreau | 9fefc51 | 2017-11-23 14:52:28 +0100 | [diff] [blame] | 193 | __tv_add(&adjusted, &date, &tv_offset); |
Willy Tarreau | 7649aac | 2017-11-23 11:52:55 +0100 | [diff] [blame] | 194 | |
Willy Tarreau | 9fefc51 | 2017-11-23 14:52:28 +0100 | [diff] [blame] | 195 | /* compute the minimum and maximum local date we may have reached based |
| 196 | * on our past date and the associated timeout. |
| 197 | */ |
| 198 | _tv_ms_add(&deadline, &now, max_wait + MAX_DELAY_MS); |
Willy Tarreau | 7649aac | 2017-11-23 11:52:55 +0100 | [diff] [blame] | 199 | |
Willy Tarreau | 9fefc51 | 2017-11-23 14:52:28 +0100 | [diff] [blame] | 200 | if (unlikely(__tv_islt(&adjusted, &now) || __tv_islt(&deadline, &adjusted))) { |
| 201 | /* Large jump. If the poll was interrupted, we consider that the |
| 202 | * date has not changed (immediate wake-up), otherwise we add |
| 203 | * the poll time-out to the previous date. The new offset is |
| 204 | * recomputed. |
| 205 | */ |
| 206 | _tv_ms_add(&adjusted, &now, interrupted ? 0 : max_wait); |
Willy Tarreau | b0b37bc | 2008-06-23 14:00:57 +0200 | [diff] [blame] | 207 | } |
| 208 | |
Willy Tarreau | 9fefc51 | 2017-11-23 14:52:28 +0100 | [diff] [blame] | 209 | /* now that we have bounded the local time, let's check if it's |
| 210 | * realistic regarding the global date, which only moves forward, |
| 211 | * otherwise catch up. |
Willy Tarreau | b0b37bc | 2008-06-23 14:00:57 +0200 | [diff] [blame] | 212 | */ |
Willy Tarreau | 9fefc51 | 2017-11-23 14:52:28 +0100 | [diff] [blame] | 213 | old_now = global_now; |
Willy Tarreau | 7559058 | 2009-03-05 14:54:50 +0100 | [diff] [blame] | 214 | |
Willy Tarreau | 9fefc51 | 2017-11-23 14:52:28 +0100 | [diff] [blame] | 215 | do { |
| 216 | tmp_now.tv_sec = (unsigned int)(old_now >> 32); |
| 217 | tmp_now.tv_usec = old_now & 0xFFFFFFFFU; |
Willy Tarreau | a331544 | 2018-02-05 20:11:38 +0100 | [diff] [blame] | 218 | tmp_adj = adjusted; |
Willy Tarreau | 7649aac | 2017-11-23 11:52:55 +0100 | [diff] [blame] | 219 | |
Willy Tarreau | a331544 | 2018-02-05 20:11:38 +0100 | [diff] [blame] | 220 | if (__tv_islt(&tmp_adj, &tmp_now)) |
| 221 | tmp_adj = tmp_now; |
Willy Tarreau | 9fefc51 | 2017-11-23 14:52:28 +0100 | [diff] [blame] | 222 | |
| 223 | /* now <adjusted> is expected to be the most accurate date, |
| 224 | * equal to <global_now> or newer. |
| 225 | */ |
Willy Tarreau | a331544 | 2018-02-05 20:11:38 +0100 | [diff] [blame] | 226 | new_now = (((unsigned long long)tmp_adj.tv_sec) << 32) + (unsigned int)tmp_adj.tv_usec; |
Willy Tarreau | 9fefc51 | 2017-11-23 14:52:28 +0100 | [diff] [blame] | 227 | |
| 228 | /* let's try to update the global <now> or loop again */ |
| 229 | } while (!HA_ATOMIC_CAS(&global_now, &old_now, new_now)); |
| 230 | |
Willy Tarreau | a331544 | 2018-02-05 20:11:38 +0100 | [diff] [blame] | 231 | adjusted = tmp_adj; |
| 232 | |
Willy Tarreau | 9fefc51 | 2017-11-23 14:52:28 +0100 | [diff] [blame] | 233 | /* the new global date when we looked was old_now, and the new one is |
| 234 | * new_now == adjusted. We can recompute our local offset. |
| 235 | */ |
| 236 | tv_offset.tv_sec = adjusted.tv_sec - date.tv_sec; |
| 237 | tv_offset.tv_usec = adjusted.tv_usec - date.tv_usec; |
| 238 | if (tv_offset.tv_usec < 0) { |
| 239 | tv_offset.tv_usec += 1000000; |
| 240 | tv_offset.tv_sec--; |
| 241 | } |
Willy Tarreau | 7649aac | 2017-11-23 11:52:55 +0100 | [diff] [blame] | 242 | |
Willy Tarreau | e6313a3 | 2008-06-29 13:47:25 +0200 | [diff] [blame] | 243 | to_ms: |
Willy Tarreau | 7559058 | 2009-03-05 14:54:50 +0100 | [diff] [blame] | 244 | now = adjusted; |
| 245 | curr_sec_ms = now.tv_usec / 1000; /* ms of current second */ |
Willy Tarreau | eab777c | 2012-12-29 21:50:07 +0100 | [diff] [blame] | 246 | |
| 247 | /* For frequency counters, we'll need to know the ratio of the previous |
| 248 | * value to add to current value depending on the current millisecond. |
| 249 | * The principle is that during the first millisecond, we use 999/1000 |
| 250 | * of the past value and that during the last millisecond we use 0/1000 |
| 251 | * of the past value. In summary, we only use the past value during the |
| 252 | * first 999 ms of a second, and the last ms is used to complete the |
| 253 | * current measure. The value is scaled to (2^32-1) so that a simple |
| 254 | * multiply followed by a shift gives us the final value. |
| 255 | */ |
| 256 | ms_left_scaled = (999U - curr_sec_ms) * 4294967U; |
Willy Tarreau | 7559058 | 2009-03-05 14:54:50 +0100 | [diff] [blame] | 257 | now_ms = now.tv_sec * 1000 + curr_sec_ms; |
Willy Tarreau | b0b37bc | 2008-06-23 14:00:57 +0200 | [diff] [blame] | 258 | return; |
Willy Tarreau | b7f694f | 2008-06-22 17:18:02 +0200 | [diff] [blame] | 259 | } |
| 260 | |
Willy Tarreau | d825eef | 2007-05-12 22:35:00 +0200 | [diff] [blame] | 261 | /* |
Willy Tarreau | baaee00 | 2006-06-26 02:48:02 +0200 | [diff] [blame] | 262 | * Local variables: |
| 263 | * c-indent-level: 8 |
| 264 | * c-basic-offset: 8 |
| 265 | * End: |
| 266 | */ |