]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/configuration/sgconfig/parser.cpp
Added modification time for session traffic.
[stg.git] / projects / stargazer / plugins / configuration / sgconfig / parser.cpp
index 1ac4828ada17750e86836f4fab0f4f298cceede6..5499c3825eb9e1e1d96a34bda60cfa1d13317c4c 100644 (file)
@@ -921,13 +921,12 @@ else
     if (strcasecmp(el, "traff") == 0)
         {
         int j = 0;
-        int dir;
         DIR_TRAFF dtu;
         DIR_TRAFF dtd;
         uint64_t t = 0;
         while (attr[j])
             {
-            dir = attr[j][2] - '0';
+            int dir = attr[j][2] - '0';
 
             if (strncasecmp(attr[j], "md", 2) == 0)
                 {