Explorar o código

修复dhcp租期错误的问题

vothin %!s(int64=2) %!d(string=hai) anos
pai
achega
abcbf7aee9
Modificáronse 3 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      jni/net/DhcpClient.cpp
  2. BIN=BIN
      libs/armeabi/libzkgui.so
  3. BIN=BIN
      obj/net/DhcpClient.o

+ 1 - 1
jni/net/DhcpClient.cpp

@@ -375,7 +375,7 @@ bool DhcpClient::start(const char *ip, const char *macaddr, const char *gateway)
 	gateway_ = gateway;
 	record_time_ = get_sec();
 //	lease_ = 60 * 60;    // 1 hour
-	lease_ = 100;    // 100分钟
+	lease_ = 100 * 60;    // 100分钟
 	record_lease_ = 0;
 
 	LOGD("开始请求dhcp,ip == %s", ip);

BIN=BIN
libs/armeabi/libzkgui.so


BIN=BIN
obj/net/DhcpClient.o