File: setrepeat.cc

package info (click to toggle)
stealth 4.04.00-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,540 kB
  • sloc: cpp: 2,759; sh: 151; makefile: 111; ansic: 52
file content (22 lines) | stat: -rw-r--r-- 510 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "options.ih"

void Options::setRepeat()
{
    string value;

    if (not (d_repeat = d_arg.option(&value, "repeat")))
        return;

    if (d_ipc)
        fmsg << "--repeat not available in IPC modes" << noidl;

    d_repeatInterval = checkM(value, "repeat");  

    if (d_repeatInterval == 0)
        wmsg << "--repeat 0: no repeated integrity scans" << endl; 

    if (d_repeatInterval > static_cast<size_t>(numeric_limits<int>::max()))
        d_repeatInterval = numeric_limits<int>::max();
}