diff options
Diffstat (limited to 'src/util.h')
| -rw-r--r-- | src/util.h | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -154,7 +154,7 @@ void ParseString(const string& str, char c, vector<string>& v); | |||
| 154 | string FormatMoney(int64 n, bool fPlus=false); | 154 | string FormatMoney(int64 n, bool fPlus=false); |
| 155 | bool ParseMoney(const char* pszIn, int64& nRet); | 155 | bool ParseMoney(const char* pszIn, int64& nRet); |
| 156 | bool FileExists(const char* psz); | 156 | bool FileExists(const char* psz); |
| 157 | int GetFilesize(FILE* file); | 157 | int64 GetFilesize(FILE* file); |
| 158 | uint64 GetRand(uint64 nMax); | 158 | uint64 GetRand(uint64 nMax); |
| 159 | int64 GetTime(); | 159 | int64 GetTime(); |
| 160 | int64 GetAdjustedTime(); | 160 | int64 GetAdjustedTime(); |
| @@ -410,8 +410,8 @@ inline int OutputDebugStringF(const char* pszFormat, ...) | |||
| 410 | // so a rename is safe here: the next line simply reopens the | 410 | // so a rename is safe here: the next line simply reopens the |
| 411 | // path. One generation is kept as debug.log.old; logrotate | 411 | // path. One generation is kept as debug.log.old; logrotate |
| 412 | // (contrib/logrotate/) handles anything longer-term. | 412 | // (contrib/logrotate/) handles anything longer-term. |
| 413 | int nSize = GetFilesize(fileout); | 413 | int64 nSize = GetFilesize(fileout); |
| 414 | if (nSize >= 0 && (int64)nSize > nMaxDebugFileSize) | 414 | if (nSize >= 0 && nSize > nMaxDebugFileSize) |
| 415 | { | 415 | { |
| 416 | fclose(fileout); | 416 | fclose(fileout); |
| 417 | string strOldFile = strDebugFile + ".old"; | 417 | string strOldFile = strDebugFile + ".old"; |