[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/rtmp r9755: return the string from ::stats
From: |
rob |
Subject: |
[Gnash-commit] /srv/bzr/gnash/rtmp r9755: return the string from ::stats(). |
Date: |
Thu, 20 Nov 2008 09:30:20 -0700 |
User-agent: |
Bazaar (1.5) |
------------------------------------------------------------
revno: 9755
committer: address@hidden
branch nick: rtmp
timestamp: Thu 2008-11-20 09:30:20 -0700
message:
return the string from ::stats().
modified:
libnet/cache.cpp
libnet/cache.h
=== modified file 'libnet/cache.cpp'
--- a/libnet/cache.cpp 2008-11-17 17:05:30 +0000
+++ b/libnet/cache.cpp 2008-11-20 16:30:20 +0000
@@ -175,7 +175,7 @@
}
#ifdef USE_STATS_CACHE
-boost::shared_ptr<string>
+string
Cache::stats() const
{
// GNASH_REPORT_FUNCTION;
@@ -190,7 +190,7 @@
text << "Pathnames in cache: " << _pathnames.size() << " accessed "
<< _pathname_lookups << " times" << endl;
- text << "Pathname hits from cache: " << _pathname_hits << endl;
+ text << "Pathname hits from cache: " << _pathname_hits << endl;
text << "Responses in cache: " << _responses.size() << " accessed "
<< _response_lookups << " times" << endl;
@@ -210,11 +210,9 @@
}
#endif
- cerr << text.str() << endl;
-
- boost::shared_ptr<string> str;
+// cerr << text.str() << endl;
- return str;
+ return text.str();
}
#endif
=== modified file 'libnet/cache.h'
--- a/libnet/cache.h 2008-11-17 17:05:30 +0000
+++ b/libnet/cache.h 2008-11-20 16:30:20 +0000
@@ -25,7 +25,7 @@
#include <string>
#include <map>
-#include <iostream> // for output operator
+#include <iostream>
#include <boost/shared_ptr.hpp>
#include "statistics.h"
@@ -66,7 +66,7 @@
void dump(std::ostream& os) const;
#ifdef USE_STATS_CACHE
- boost::shared_ptr<std::string> stats() const;
+ std::string stats() const;
#endif
private:
/// \var Cache::_pathnames
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/rtmp r9755: return the string from ::stats().,
rob <=