diff options
author | Renato Botelho <renato@netgate.com> | 2015-12-11 13:11:26 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-12-11 13:11:26 -0200 |
commit | 4fa580c2a3115c9bf6da3b93ef00f54e7bc4a7c8 (patch) | |
tree | a281389d7ac360a2afb7bd155487c7e15e05b41e /src/etc | |
parent | 24f2a16a33d215cea64c7357e217652e2f6fd1c1 (diff) | |
download | pfsense-4fa580c2a3115c9bf6da3b93ef00f54e7bc4a7c8.zip pfsense-4fa580c2a3115c9bf6da3b93ef00f54e7bc4a7c8.tar.gz |
Convert delay to milliseconds for RRD graph, ticket #5624
Diffstat (limited to 'src/etc')
-rw-r--r-- | src/etc/inc/rrd.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/etc/inc/rrd.inc b/src/etc/inc/rrd.inc index a9c158f..34f5b47 100644 --- a/src/etc/inc/rrd.inc +++ b/src/etc/inc/rrd.inc @@ -972,6 +972,9 @@ for sock in {$g['varrun_path']}/dpinger_*.sock; do fi if echo "\$delay" | grep -Eqv '^[0-9]+\$'; then delay="U" + else + # Convert delay to millisecond + delay=\$(echo "scale=3; \$delay / 1000") fi gw=\$(echo \$sock | sed 's,^.*dpinger_,,; s,\.sock,,') |