Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-1713

wrong time calculation in zkfuse.cc

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 3.4.5
    • 3.4.6, 3.5.0
    • None
    • None
    • Linux

    Description

      A colleague of mine has spotted this error in time calculation in the code in zkfuse.cc lines 81 to 85:
      inline
      uint64_t nanosecsToMillisecs(uint64_t nanosecs)
      {
      return nanosecs * 1000000;
      }
      I am not sure how this method is used, but for sure it will make something wrong happen if it is.

      Attachments

        1. ZOOKEEPER-1713.patch
          0.4 kB
          Germán Blanco

        Activity

          People

            abranzyck Germán Blanco
            abranzyck Germán Blanco
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: