]> git.stg.codes - stg.git/blobdiff - projects/sgconf/request.h
Ticket 37. The stgTime argument added in TariffChangeIsAllowed()
[stg.git] / projects / sgconf / request.h
index 70c45059485d7571802281ca4718dc0d6625d6da..6122212732aa5206359a6eb8342c717de401c61a 100644 (file)
@@ -54,14 +54,12 @@ REQUEST()
 {
     for (int i = 0; i < DIR_NUM; i++)
         {
 {
     for (int i = 0; i < DIR_NUM; i++)
         {
-        sessionUp[i].reset();
-        sessionDown[i].reset();
-        monthUp[i].reset();
-        monthDown[i].reset();
+        u[i].reset();
+        d[i].reset();
         }
 
     for (int i = 0; i < USERDATA_NUM; i++)
         }
 
     for (int i = 0; i < USERDATA_NUM; i++)
-        userData[i].reset();
+        ud[i].reset();
 }
 
 RESETABLE<string>   server;
 }
 
 RESETABLE<string>   server;
@@ -90,13 +88,10 @@ RESETABLE<bool>     disableDetailStat;
 RESETABLE<bool>     alwaysOnline;
 RESETABLE<double>   prepaidTraff;
 
 RESETABLE<bool>     alwaysOnline;
 RESETABLE<double>   prepaidTraff;
 
-RESETABLE<int64_t>  sessionUpload[DIR_NUM];
-RESETABLE<int64_t>  sessionDownload[DIR_NUM];
+RESETABLE<int64_t>  u[DIR_NUM];
+RESETABLE<int64_t>  d[DIR_NUM];
 
 
-RESETABLE<int64_t>  monthUpload[DIR_NUM];
-RESETABLE<int64_t>  monthDownload[DIR_NUM];
-
-RESETABLE<string>   userData[USERDATA_NUM];
+RESETABLE<string>   ud[USERDATA_NUM];
 
 RESETABLE<string>   note;
 RESETABLE<string>   name;
 
 RESETABLE<string>   note;
 RESETABLE<string>   name;