コード例 #1
0
 /// <summary>
 ///
 /// </summary>
 /// <returns></returns>
 public string Dump()
 {
     return("== DATASOURCE ==\n" +
            "DS:" + dsName.Get() + ":" + dsType.Get() + ":" +
            heartbeat.Get() + ":" + minValue.Get() + ":" +
            maxValue.Get() + "\nlastValue:" + lastValue.Get() +
            " nanSeconds:" + nanSeconds.Get() +
            " accumValue:" + accumValue.Get() + "\n");
 }
コード例 #2
0
ファイル: Header.cs プロジェクト: PetersSharp/stCoCServer
        /// <summary>
        ///
        /// </summary>
        /// <param name="other"></param>
        public void CopyStateTo(IRrdUpdatable other)
        {
            if (!(other is Header))
            {
                throw new RrdException("Cannot copy Header object to " + other.ToString());
            }
            Header header = (Header)other;

            header.lastUpdateTime.Set(lastUpdateTime.Get());
        }
コード例 #3
0
 /// <summary>
 ///
 /// </summary>
 /// <returns></returns>
 public string Dump()
 {
     return("accumValue:" + accumValue.Get() + " nanSteps:" + nanSteps.Get() + "\n");
 }