We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b0eca7 commit 71716feCopy full SHA for 71716fe
src/DownloadManager.cpp
@@ -1196,6 +1196,11 @@ class LunaDownload : public Luna<Download>
1196
lua_pushnumber(L, p->progress.downloaded);
1197
return 1;
1198
}
1199
+ static int GetKBPerSecond(T* p, lua_State* L)
1200
+ {
1201
+ lua_pushnumber(L, atoi(p->speed.c_str()));
1202
+ return 1;
1203
+ }
1204
static int GetTotalKB(T* p, lua_State* L)
1205
{
1206
lua_pushnumber(L, p->progress.total);
@@ -1210,6 +1215,7 @@ class LunaDownload : public Luna<Download>
1210
1215
1211
1216
ADD_METHOD(GetTotalKB);
1212
1217
ADD_METHOD(GetKBDownloaded);
1218
+ ADD_METHOD(GetKBPerSecond);
1213
1219
ADD_METHOD(Stop);
1214
1220
1221
};
0 commit comments