Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Letter case question, pure cosmetical: "Ntpd"

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    5 Posts 4 Posters 712 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      chasba
      last edited by

      Hi.

      I enabled the NTP graphing feature on a fresh 2.2 install (now running 2.2.1). I just checked the graph for the first time and see the following:

      Is there some way I can fix this to have the correct letter casing, "ntpd" or "NTP"? It's just a bit annoying. :o

      1 Reply Last reply Reply Quote 0
      • A
        azzido
        last edited by

        See this post: https://forum.pfsense.org/index.php?topic=91049.msg503673#msg503673

        1 Reply Last reply Reply Quote 0
        • stan-qazS
          stan-qaz
          last edited by

          I have never used any of the stuff in the post linked above and had no clue about doing it. Folks here talked me through the process and I got the change I wanted to a working but ugly state and a kind soul cleaned it up a bit and now it is part of the project.

          It isn't rocket science and you can probably figure it out and get it done in a few hours.

          1 Reply Last reply Reply Quote 0
          • P
            phil.davis
            last edited by

            That is caused by calls to ucword() in /usr/local/www/status_rrd_graph.php
            The various options in the various tabs are mostly derived from the file names of RRD files, like "system-processor". A bit of replacing "-" with " :: " and then ucwords() results in "System :: Processor"

            But it also results in stuff like "Ntpd" and "Ovpns1".

            So the code could be made a bit smarter if you care enough. It needs to understand what are "ordinary words" that should be capitalized, and what are special strings that need special treatment.

            As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
            If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

            1 Reply Last reply Reply Quote 0
            • C
              chasba
              last edited by

              Thanks for clearing that up, phil.davis. That answers my question just fine as I didn't find anything when doing case-sensitive searches. :)

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.