整理代码
This commit is contained in:
@@ -132,7 +132,7 @@ function profile.report(n)
|
||||
if #out>0 then
|
||||
sz=sz.." | "..table.concat(out," | \n | ").." | \n"
|
||||
end
|
||||
return"\n"..sz..row
|
||||
return "\n"..sz..row
|
||||
end
|
||||
|
||||
local switch=false
|
||||
|
||||
@@ -7,7 +7,7 @@ local themeColor={
|
||||
}
|
||||
|
||||
function THEME.calculate(Y,M,D)
|
||||
if not Y then Y,M,D=os.date"%Y",os.date"%m",os.date"%d"end
|
||||
if not Y then Y,M,D=os.date("%Y"),os.date("%m"),os.date("%d")end
|
||||
--Festival calculate within one statement
|
||||
return
|
||||
--Christmas
|
||||
@@ -84,7 +84,7 @@ function THEME.getThemeColor(theme)
|
||||
end
|
||||
|
||||
function THEME.fresh()
|
||||
THEME.set(THEME.calculate(os.date"%Y",os.date"%m",os.date"%d"))
|
||||
THEME.set(THEME.calculate(os.date("%Y"),os.date("%m"),os.date("%d")))
|
||||
end
|
||||
|
||||
return THEME
|
||||
@@ -55,7 +55,7 @@ do--Connect
|
||||
res,err=SOCK:receive("*l")
|
||||
if not res then readCHN:push(err)return end
|
||||
if not ctLen and res:find("length")then
|
||||
ctLen=tonumber(res:match"%d+")
|
||||
ctLen=tonumber(res:match("%d+"))
|
||||
end
|
||||
until res==""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user