]> git.stg.codes - stg.git/commitdiff
Corrected upload/download mess.
authorMaxim Mamontov <faust.madf@gmail.com>
Sat, 31 Jan 2015 15:27:53 +0000 (17:27 +0200)
committerMaxim Mamontov <faust.madf@gmail.com>
Sat, 31 Jan 2015 15:27:53 +0000 (17:27 +0200)
projects/stargazer/plugins/configuration/sgconfig/parser_users.cpp

index 7c6a46bba374ed3e62a7098149552cb0b4dbf16a..23cb17def527966b517a54545c5f8ab182318ae0 100644 (file)
@@ -126,8 +126,8 @@ std::string UserToXML(const USER & user, bool loginInStart, bool showPass, time_
         answer += "<IP value=\"" + user.GetProperty().ips.Get().GetIpStr() + "\"/>";
 
     answer += "<Traff";
-    const DIR_TRAFF & upload(user.GetProperty().down.Get());
-    const DIR_TRAFF & download(user.GetProperty().up.Get());
+    const DIR_TRAFF & upload(user.GetProperty().up.Get());
+    const DIR_TRAFF & download(user.GetProperty().down.Get());
     if (user.GetProperty().up.ModificationTime() > lastTime)
         for (size_t j = 0; j < DIR_NUM; j++)
             answer += " MU" + x2str(j) + "=\"" + x2str(upload[j]) + "\"";