Earlier I tried to suggest that Zabbix should offer user selectable Zoom-factors. The 1.6 version was bad, luckily 1.8 improved it a bit. But we are not still there.
This is how I added my much needed informative 30h view. Just added zoom factor 30 times hour (30*3600) and then tidied up the Zoom: -line but splitting strings with ' 0' instead of ' '. This way I could split output of formatStampByDHM with data clipped at first '0'.
1w 1d 0m => 1w 1d
1w 0d => 1w
Another edit featured trimming spaces in-between. Split string at ' ' and join together without white space
1w 1d => 1w1d
On my loved 30h view now I have Zoom: 1d6h
Feel free to take above additions to Zabbix UI source code base.
This is how I added my much needed informative 30h view. Just added zoom factor 30 times hour (30*3600) and then tidied up the Zoom: -line but splitting strings with ' 0' instead of ' '. This way I could split output of formatStampByDHM with data clipped at first '0'.
1w 1d 0m => 1w 1d
1w 0d => 1w
Another edit featured trimming spaces in-between. Split string at ' ' and join together without white space
1w 1d => 1w1d
Originally posted by file js/gtlc.js
Feel free to take above additions to Zabbix UI source code base.