diff options
| author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2002-12-03 07:20:34 +0000 |
|---|---|---|
| committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2002-12-03 07:20:34 +0000 |
| commit | 7da19138e37c4e0123860f1fecbceb80c3d2627d (patch) | |
| tree | 8453f003a9ba212807d9c9590c2f2b850d323f0f /src/buffer.c | |
| parent | d7e80592a69c076991ed4f4cc15d5390e14d1f0b (diff) | |
| download | luasocket-7da19138e37c4e0123860f1fecbceb80c3d2627d.tar.gz luasocket-7da19138e37c4e0123860f1fecbceb80c3d2627d.tar.bz2 luasocket-7da19138e37c4e0123860f1fecbceb80c3d2627d.zip | |
Faltam testes de ftp e smtp. O resto passa.
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.c b/src/buffer.c index a9a9782..4260f20 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -74,7 +74,7 @@ int buf_send(lua_State *L, p_buf buf) | |||
| 74 | } | 74 | } |
| 75 | priv_pusherror(L, err); | 75 | priv_pusherror(L, err); |
| 76 | lua_pushnumber(L, total); | 76 | lua_pushnumber(L, total); |
| 77 | #ifdef _DEBUG | 77 | #ifdef LUASOCKET_DEBUG |
| 78 | /* push time elapsed during operation as the last return value */ | 78 | /* push time elapsed during operation as the last return value */ |
| 79 | lua_pushnumber(L, tm_getelapsed(&base->base_tm)/1000.0); | 79 | lua_pushnumber(L, tm_getelapsed(&base->base_tm)/1000.0); |
| 80 | #endif | 80 | #endif |
| @@ -139,7 +139,7 @@ int buf_receive(lua_State *L, p_buf buf) | |||
| 139 | for ( ; arg <= top; arg++) lua_pushnil(L); | 139 | for ( ; arg <= top; arg++) lua_pushnil(L); |
| 140 | /* last return is an error code */ | 140 | /* last return is an error code */ |
| 141 | priv_pusherror(L, err); | 141 | priv_pusherror(L, err); |
| 142 | #ifdef _DEBUG | 142 | #ifdef LUASOCKET_DEBUG |
| 143 | /* push time elapsed during operation as the last return value */ | 143 | /* push time elapsed during operation as the last return value */ |
| 144 | lua_pushnumber(L, tm_getelapsed(&base->base_tm)/1000.0); | 144 | lua_pushnumber(L, tm_getelapsed(&base->base_tm)/1000.0); |
| 145 | #endif | 145 | #endif |
