#142: update text labels
This commit is contained in:
parent
40449c81ef
commit
3e861efe5f
|
@ -7,8 +7,8 @@
|
|||
.lefter= t("layout.build_lists.build_server_status.rpm_workers")
|
||||
.both
|
||||
.table
|
||||
.lefter= t("layout.build_lists.build_server_status.count")
|
||||
.righter= @build_server_status[:rpm][:count]
|
||||
.lefter= t("layout.build_lists.build_server_status.workers")
|
||||
.righter= @build_server_status[:rpm][:workers]
|
||||
.both
|
||||
.table
|
||||
.lefter= t("layout.build_lists.build_server_status.tasks")
|
||||
|
@ -27,7 +27,7 @@
|
|||
.table
|
||||
.lefter= t("layout.build_lists.build_server_status.#{queue}_workers")
|
||||
.both
|
||||
- [:count, :tasks, :build_tasks].each do |metric|
|
||||
- [:workers, :tasks, :build_tasks].each do |metric|
|
||||
.table
|
||||
.lefter= t("layout.build_lists.build_server_status.#{metric}")
|
||||
- if metric == :tasks
|
||||
|
|
|
@ -99,14 +99,14 @@ en:
|
|||
|
||||
build_server_status:
|
||||
header: Build server status
|
||||
count: '- count'
|
||||
workers: '- count'
|
||||
tasks: '- tasks in queue'
|
||||
user_tasks: "-- user's"
|
||||
mass_build_tasks: "-- mass build's"
|
||||
build_tasks: '- tasks in execution'
|
||||
rpm_workers: Workers for building
|
||||
iso_workers: Workers for building
|
||||
publish_workers: Workers for publishing
|
||||
rpm_workers: Workers of building
|
||||
iso_workers: Workers of building
|
||||
publish_workers: Workers of publishing
|
||||
|
||||
items:
|
||||
statuses:
|
||||
|
|
|
@ -98,14 +98,14 @@ ru:
|
|||
|
||||
build_server_status:
|
||||
header: Статус сборочного сервера
|
||||
count: '- число'
|
||||
workers: '- число'
|
||||
tasks: '- заданий в очереди'
|
||||
user_tasks: '-- пользовательских'
|
||||
mass_build_tasks: '-- массовой сборки'
|
||||
build_tasks: '- заданий выполняется'
|
||||
rpm_workers: Воркеров для сборки
|
||||
iso_workers: Воркеров для сборки
|
||||
publish_workers: Воркеров для публикации
|
||||
rpm_workers: Воркеры сборки
|
||||
iso_workers: Воркеры сборки
|
||||
publish_workers: Воркеры публикации
|
||||
|
||||
items:
|
||||
statuses:
|
||||
|
|
|
@ -30,7 +30,7 @@ module AbfWorker
|
|||
redis, key = Resque.redis, "queue:#{worker}_worker"
|
||||
default_tasks, tasks = redis.llen("#{key}_default"), redis.llen(key)
|
||||
{
|
||||
:count => workers.count,
|
||||
:workers => workers.count,
|
||||
:build_tasks => workers.select{ |w| w.working? }.count,
|
||||
:default_tasks => redis.llen("#{key}_default"),
|
||||
:low_tasks => redis.llen(key)
|
||||
|
|
Loading…
Reference in New Issue