Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9184b56ea5e51b8b508d6b7b22b9aa02527f3fdcacd1d1086debcd14f3a30390
Ticket: 1a6a36d901dedead248ea96df09d5dc159532652
Linux: epoll() cpu usage is high (in conjunction with after command)
User & Date: bll on 2017-09-10 18:36:09
Changes

  1. icomment:
    So Problem C is somehow caused by a clock display.
    
    I have not tested this as a stand-alone procedure!!!
    
    The procedure:
    
      proc doClock { } {
        variable vars
    
        # this is not quite localized...
        if { [$::bdjopt get MQSHOWCLOCK] eq {12 Hour} } {
          set vars(clock.disp) [clock format [clock seconds] \
              -format "%A %B %Oe  %r" -locale system]
        } else {
          set vars(clock.disp) [clock format [clock seconds] \
              -format "%A %B %Oe  %R" -locale system]
        }
        after 500 ::bdj::doClock
      }
    
    And it is started with an initial:
    
      doClock
    
    I commented out the [clock] commands and that has no effect.
    Commenting out the after command returns the code to normal CPU usage.
    
  2. login: "bll"
  3. mimetype: "text/plain"