mail[Wesnoth-commits] r28350 - /branches/1.4/src/campaign_server/campaign_server.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by paniemin on August 07, 2008 - 07:43:
Author: suokko
Date: Wed Aug  6 17:54:02 2008
New Revision: 28350

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28350&view=rev
Log:
Fixed log output to include kb extension to size

Modified:
    branches/1.4/src/campaign_server/campaign_server.cpp

Modified: branches/1.4/src/campaign_server/campaign_server.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/branches/1.4/src/campaign_server/campaign_server.cpp?rev=28350&r1=28349&r2=28350&view=diff
==============================================================================
--- branches/1.4/src/campaign_server/campaign_server.cpp (original)
+++ branches/1.4/src/campaign_server/campaign_server.cpp Wed Aug  6 17:54:02 
2008
@@ -384,7 +384,7 @@
                                                } else {
                                                        if (gzipped)
                                                        {
-                                                               std::cerr << 
" size: " << (file_size((*campaign)["filename"])/1024) << "\n";
+                                                               std::cerr << 
" size: " << (file_size((*campaign)["filename"])/1024) << "kb\n";
                                                                
network::send_file((*campaign)["filename"], sock);
                                                        } else {
                                                                
scoped_istream stream = istream_file((*campaign)["filename"]);
@@ -392,7 +392,7 @@
                                                                read_gz(cfg, 
*stream);
                                                                std::cerr << 
" size: " <<
                                                                        
network::send_data(cfg, sock, false)
-                                                                       << 
"\n";
+                                                                       << 
"kb\n";
                                                        }
 
                                                        const int downloads = 
lexical_cast_default<int>((*campaign)["downloads"],0)+1;




Related Messages


Powered by MHonArc, Updated Thu Aug 07 09:00:50 2008