blob: 69fab2984f55c4f4be235d119fe993dc1f8ff60d [file] [log] [blame]
// Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Sensor Log configuration constants and default flag values.
package config
import (
"fmt"
"time"
)
const (
DefaultSbService = "syncbase"
DBName = "sldb"
SyncPriority = 42
TimeOutputFormat = "2006-01-02 15:04:05.000"
// Delay between SIGINT and SIGKILL when stopping measuring script.
ScriptKillDelay = 100 * time.Millisecond
// Both Syncbase write and sampling script slowness impose this limit;
// sampling with mocked out script and Syncbase write supports 200 µs.
MinSamplingInterval = 10 * time.Millisecond
)
func SyncgroupName(devId string) string {
return fmt.Sprintf("sldev%s", devId)
}