eh it works sorta maybe

Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
2016-09-27 04:18:43 +03:00
parent 249870e00e
commit b01792ec1b
5 changed files with 171 additions and 0 deletions

15
mod/date Normal file
View File

@@ -0,0 +1,15 @@
# vim: ft=ruby
class ModDate < ModBasic
@@mod_name = 'date'
def data_loop()
while true do
$panel_data[@@mod_name.to_sym] = Time.now.strftime($config['mod']['date']['format'])
$queue << 1
sleep 1
end
end
end
$workers << ModDate.new.mainloop()