Commit 046e18c1 authored by claes's avatar claes

Zero multiple caused divsion by 0

parent 74514f9c
/* /*
* Proview $Id: rt_trend.c,v 1.11 2007-11-01 15:30:13 claes Exp $ * Proview $Id: rt_trend.c,v 1.12 2008-09-18 15:10:21 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB. * Copyright (C) 2005 SSAB Oxelsund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -310,6 +310,8 @@ InitTrendList ( ...@@ -310,6 +310,8 @@ InitTrendList (
} }
Trend->DataType = Tix; Trend->DataType = Tix;
if ( Trend->Multiple == 0)
Trend->Multiple = 1;
Trend->NoOfSample = (Trend->StorageTime * ScanTime) / Trend->Multiple; Trend->NoOfSample = (Trend->StorageTime * ScanTime) / Trend->Multiple;
if(Trend->NoOfSample > Trend->NoOfBufElement) if(Trend->NoOfSample > Trend->NoOfBufElement)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment