mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-16 01:54:52 -04:00
Use safer rstime_t instead of time_t
Avoid problems to serialization on different platforms, without breaking nested STL containers serialization. The conversion have been made with sed, and checked with grep, plus kdiff3 visual ispection, plus rutime tests, so it should be fine.
This commit is contained in:
parent
41aa675a9b
commit
329050a9c2
223 changed files with 930 additions and 911 deletions
|
@ -207,7 +207,7 @@ class TurtleHashInfo
|
|||
public:
|
||||
std::vector<TurtleTunnelId> tunnels ; // list of active tunnel ids for this file hash
|
||||
TurtleRequestId last_request ; // last request for the tunnels of this hash
|
||||
time_t last_digg_time ; // last time the tunnel digging happenned.
|
||||
rstime_t last_digg_time ; // last time the tunnel digging happenned.
|
||||
RsTurtleClientService *service ; // client service to which items should be sent. Never NULL.
|
||||
bool use_aggressive_mode ; // allow to re-digg tunnels even when some are already available
|
||||
};
|
||||
|
@ -436,10 +436,10 @@ class p3turtle: public p3Service, public RsTurtle, public p3Config
|
|||
/// List of client services that have regitered.
|
||||
std::map<uint16_t,RsTurtleClientService*> _registered_services ;
|
||||
|
||||
time_t _last_clean_time ;
|
||||
time_t _last_tunnel_management_time ;
|
||||
time_t _last_tunnel_campaign_time ;
|
||||
time_t _last_tunnel_speed_estimate_time ;
|
||||
rstime_t _last_clean_time ;
|
||||
rstime_t _last_tunnel_management_time ;
|
||||
rstime_t _last_tunnel_campaign_time ;
|
||||
rstime_t _last_tunnel_speed_estimate_time ;
|
||||
|
||||
std::list<pqipeer> _online_peers;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue