示例#1
0
unsigned long get_space_perc() {
    return GetFreeCardSpaceKb()*100/GetTotalCardSpaceKb();
}
示例#2
0
文件: luascript.c 项目: emlyn/chdk
static int luaCB_get_disk_size( lua_State* L )
{
    lua_pushnumber( L, GetTotalCardSpaceKb() );
    return 1;
}