Safely convert value to int, handling numpy types
(value, default=0)
| 3811 | finally: |
| 3812 | with _sensing_install_lock: |
| 3813 | _sensing_installing = False |
| 3814 | |
| 3815 | |
| 3816 | @app.route('/api/sensing/status', methods=['GET']) |
| 3817 | def sensing_status(): |
| 3818 | """Report whether the bundled sensing backend is installed and running.""" |
| 3819 | installed, active = _sensing_unit_state() |
| 3820 | arch = os.uname().machine |
| 3821 | has_prebuilt = (arch == 'aarch64' and |
| 3822 | os.path.exists(os.path.join(shared_data.currentdir, 'bin', 'sensing-server'))) |
| 3823 | with _sensing_install_lock: |
no outgoing calls
no test coverage detected