diff options
author | Britney Fransen <brfransen@gmail.com> | 2023-02-02 20:17:04 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2023-02-02 20:17:04 (GMT) |
commit | cf345a74d050d0aeab8392fee5069546a1b066dc (patch) | |
tree | ea6eb658d82779e760827a11a8be7c82db59e095 /linhes/linhes-system/idle.py | |
parent | 78f90be6aa8024d14b4e96cb74f45cba036ac94c (diff) | |
download | linhes_pkgbuild-cf345a74d050d0aeab8392fee5069546a1b066dc.zip linhes_pkgbuild-cf345a74d050d0aeab8392fee5069546a1b066dc.tar.gz linhes_pkgbuild-cf345a74d050d0aeab8392fee5069546a1b066dc.tar.bz2 |
linhes-system: idle.py: add number of inuseprograms
Diffstat (limited to 'linhes/linhes-system/idle.py')
-rwxr-xr-x | linhes/linhes-system/idle.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/linhes/linhes-system/idle.py b/linhes/linhes-system/idle.py index 373ae24..778677d 100755 --- a/linhes/linhes-system/idle.py +++ b/linhes/linhes-system/idle.py @@ -114,7 +114,11 @@ def in_use(cmdargs,cursor): msg(cmdargs," Programs are NOT in use.") return True else: - msg(cmdargs," Programs are in use.") + msg(cmdargs," %s programs are in use." %prginuse) + cursor.execute("select recusage,chanid,lastupdatetime from inuseprograms") + results=cursor.fetchall() + for i in results: + msg(cmdargs," %s - %s - %s" %(i[0],i[1],i[2])) return False def job_check(cmdargs,cursor): |