Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/pr/265' into pulls
Browse files Browse the repository at this point in the history
cast boost::uint64_t for json time fields
Grive#265
  • Loading branch information
mMerlin committed Apr 12, 2015
2 parents 18bd6ae + 1301d4e commit 10a9da6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libgrive/src/drive/State.cc
Original file line number Diff line number Diff line change
Expand Up @@ -248,12 +248,12 @@ void State::Read( const fs::path& filename )
void State::Write( const fs::path& filename ) const
{
Json last_sync ;
last_sync.Add( "sec", Json(m_last_sync.Sec() ) );
last_sync.Add( "nsec", Json(m_last_sync.NanoSec() ) );
last_sync.Add( "sec", Json((boost::uint64_t) m_last_sync.Sec() ) );
last_sync.Add( "nsec", Json((boost::uint64_t) m_last_sync.NanoSec() ) );

Json result ;
result.Add( "last_sync", last_sync ) ;
result.Add( "change_stamp", Json(m_cstamp) ) ;
result.Add( "change_stamp", Json((boost::uint64_t) m_cstamp) ) ;

std::ofstream fs( filename.string().c_str() ) ;
fs << result ;
Expand Down

0 comments on commit 10a9da6

Please sign in to comment.